Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vatai committed Aug 16, 2024
1 parent 76d215c commit 733e5b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion radicalpy/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def pauli(self):

@property
def gamma_mT(self):
"""Return magnetogyric ratio, :math:`\gamma` (rad/s/mT)."""
r"""Return magnetogyric ratio, :math:`\gamma` (rad/s/mT)."""
return self.magnetogyric_ratio * 0.001

@property
Expand Down
2 changes: 1 addition & 1 deletion radicalpy/estimations.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def k_ST_mixing(Bhalf: float) -> float:
def k_electron_transfer(
separation: float, driving_force: float = -1, reorganisation_energy: float = 1
) -> float:
"""Electron transfer rate.
r"""Electron transfer rate.
The default values (when `-driving_force ==
reorganisation_energy`) return the maximum electron transfer rate.
Expand Down
8 changes: 4 additions & 4 deletions radicalpy/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def product_yield(product_probability, time, k):
product_yield = k * sp.integrate.cumulative_trapezoid(
product_probability, time, initial=0
)
product_yield_sum = k * np.trapz(product_probability, dx=time[1])
product_yield_sum = k * np.trapezoid(product_probability, dx=time[1])
return product_yield, product_yield_sum

def apply_liouville_hamiltonian_modifiers(self, H, modifiers):
Expand Down Expand Up @@ -727,14 +727,14 @@ def initial_density_matrix(self, state: State, H: np.ndarray) -> np.ndarray:

@staticmethod
def unitary_propagator(H: np.ndarray, dt: float) -> np.ndarray:
"""Create unitary propagator (Hilbert space).
r"""Create unitary propagator (Hilbert space).
Create unitary propagator matrices **U** and **U*** for time
evolution of the density matrix in Hilbert space (for the spin
Hamiltonian `H`).
.. math::
\mathbf{U} =& \exp( -i \hat{H} t ) \\\\
\mathbf{U} =& \exp( -i \hat{H} t ) \\
\mathbf{U}^* =& \exp( +i \hat{H} t )
See also: `propagate` and `time_evolution`.
Expand Down Expand Up @@ -856,7 +856,7 @@ def initial_density_matrix(self, state: State, H: np.ndarray) -> np.ndarray:

@staticmethod
def unitary_propagator(H, dt):
"""Create unitary propagator (Liouville space).
r"""Create unitary propagator (Liouville space).
Create unitary propagator matrix **U** for the time evolution
of the density matrix in Liouville space (for the spin
Expand Down

0 comments on commit 733e5b6

Please sign in to comment.