Skip to content

Commit

Permalink
added test for the beam_profile function.
Browse files Browse the repository at this point in the history
  • Loading branch information
johbackm committed Jan 19, 2024
1 parent 62b0ea9 commit 59d2777
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_gfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ def test_psds():
np.testing.assert_almost_equal(my_psds['ScatMassEnsemble'].sum(), 3.15026266)
np.testing.assert_almost_equal(my_psds['IncanMassEnsemble'].sum(), 0.08177226)
np.testing.assert_almost_equal(my_binary['DeadtimeRelativeBias'].mean(), -0.00023515)
coeff, beam_profile = pysp2.util.beam_shape(my_binary,beam_position_from='peak maximum',Globals=pysp2.util.DMTGlobals())
coeff, beam_profile = pysp2.util.beam_shape(
my_binary, beam_position_from='peak maximum', Globals=pysp2.util.DMTGlobals())
np.testing.assert_almost_equal(coeff, [9.83851858e-01, 4.64317390e+01,
1.14337852e+01, 4.46761788e-03])

0 comments on commit 59d2777

Please sign in to comment.