Skip to content

Commit

Permalink
log_nu_tau_energy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Areustle committed Dec 1, 2021
1 parent 1fc2d07 commit 84d7a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/nuspacesim/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def log_nu_tau_energy(self) -> float:
def nu_tau_energy(self) -> float:
"""10 ^ log_nu_tau_energy."""
if isinstance(self.spectrum, MonoSpectrum):
return 10 ** self.nu_tau_energy()
return 10 ** self.log_nu_tau_energy
else:
return nan

Expand Down
2 changes: 1 addition & 1 deletion test/core/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_detector_characteristics():
def test_simulation_params():
sp = nss.SimulationParameters()
assert sp.N > 0
assert np.log10(sp.nu_tau_energy()) == sp.log_nu_tau_energy
assert np.log10(sp.nu_tau_energy) == sp.log_nu_tau_energy
assert np.sin(sp.theta_ch_max) == sp.sin_theta_ch_max


Expand Down

0 comments on commit 84d7a5f

Please sign in to comment.