Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vatai committed Aug 16, 2024
1 parent 31210a8 commit 76d215c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radicalpy/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,13 @@ def anisotropic(self) -> NDArray:
return self._anisotropic

@property
def isotropic(self) -> NDArray:
def isotropic(self) -> float:
"""Isotropic value.
Returns:
float: The isotropic HFC value.
"""
return self._isotropic
return float(self._isotropic)


class Nucleus:
Expand Down Expand Up @@ -654,7 +654,7 @@ def semiclassical_std(self) -> float:
n.spin_quantum_number * (n.spin_quantum_number + 1) * n.hfc.isotropic**2
for n in self.nuclei
)
return np.sqrt(2) / tau
return float(np.sqrt(2) / tau)


class Triplet(Molecule):
Expand Down

0 comments on commit 76d215c

Please sign in to comment.