Skip to content

Commit

Permalink
Add check on output events
Browse files Browse the repository at this point in the history
  • Loading branch information
paolafer committed Apr 24, 2024
1 parent 8992172 commit 6cda61c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion invisible_cities/cities/detsim_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,10 @@ def test_detsim_buffer_times(ICDATADIR, output_tmpdir):
def test_detsim_hits_without_strings(ICDATADIR, output_tmpdir):
PATH_IN = os.path.join(ICDATADIR , "nexus_next100_nostrings.h5")
PATH_OUT = os.path.join(output_tmpdir, "detsim_nostrings.h5")
conf = configure('detsim $ICTDIR/invisible_cities/config/detsim.conf'.split())
conf = configure('detsim $ICTDIR/invisible_cities/config/detsim_next100.conf'.split())
conf.update(dict(files_in = PATH_IN,
file_out = PATH_OUT,
run_number = 0))
result = detsim(**conf)

assert result.evtnum_list == [0, 1]
2 changes: 1 addition & 1 deletion invisible_cities/config/detsim_next100.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
files_in = "$ICDIR/database/test_data/nexus_new_kr83m_fast.newformat.sim.h5"
files_in = "$ICDIR/database/test_data/nexus_next100_nostrings.h5"
file_out = "/tmp/detsim_out.h5"

event_range = all
Expand Down

0 comments on commit 6cda61c

Please sign in to comment.