Skip to content

Commit

Permalink
fix wrong function call in test 31
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Vergara Gil committed Dec 3, 2024
1 parent c52a63d commit 9f2ac43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opengate/tests/src/test031_beta_plus_spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import opengate as gate
from opengate.tests import utility
from opengate.sources.utility import compute_bins_density, get_rad_yield
from opengate.sources.utility import compute_bins_density, get_rad_yield, get_spectrum

if __name__ == "__main__":
paths = utility.get_default_test_paths(__file__, "", "test031")
Expand Down Expand Up @@ -40,7 +40,7 @@
i += 1

for rad in l:
data = gate.sources.generic.read_beta_plus_spectra(rad)
data = get_spectrum(rad, "e+", "radar")
x = data[:, 0] # energy E(keV)
y = data[:, 1] # proba dNtot/dE b+
# normalize taking into account the bins density
Expand Down

0 comments on commit 9f2ac43

Please sign in to comment.