Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nvaytet committed Nov 26, 2024
1 parent 9e56a48 commit aecb9be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ def test_to_nxevent_data():
model = tof.Model(source=source, choppers=choppers, detectors=detectors)
res = model.run()

# There should be 1 pulse for monitor data, and 2 pulses for detector data as it
# wraps around the pulse period.
for key, npulses in zip(('monitor', 'detector'), (1, 2)):
nxevent_data = res.to_nxevent_data(key)
assert sc.identical(res['monitor'].data.sum().data, nxevent_data.sum().data)
Expand Down

0 comments on commit aecb9be

Please sign in to comment.