Skip to content

Commit

Permalink
Generate efield instead of readin in a pickle file
Browse files Browse the repository at this point in the history
  • Loading branch information
fschlueter committed Jan 27, 2024
1 parent 5dd4c85 commit 7fbd81f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Binary file removed NuRadioReco/detector/test/test_ef.pkl
Binary file not shown.
5 changes: 2 additions & 3 deletions NuRadioReco/detector/test/test_rnog_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ def test_detector():


from NuRadioReco.framework import electric_field
with open(f"{os.path.dirname(__file__)}/test_ef.pkl", "rb") as f:
ef = electric_field.ElectricField(channel_ids=[0])
ef.deserialize(f.read())
ef = electric_field.ElectricField(channel_ids=[0])
ef.set_frequency_spectrum(np.ones(1025, dtype=complex), sampling_rate=2.4)

ef *= response

Expand Down

0 comments on commit 7fbd81f

Please sign in to comment.