Skip to content

Commit

Permalink
Merge pull request #117 from scipp/fix-grow_nexus
Browse files Browse the repository at this point in the history
Fix grow_nexus script length calculation
  • Loading branch information
SimonHeybrock authored Oct 10, 2024
2 parents da717ec + 9b49927 commit 35b145f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ess/reduce/scripts/grow_nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def _scale_group(event_data: h5py.Group, scale: int):
event_data['event_index'][:] = event_index

size = event_data['event_id'].size
event_data['event_id'].resize(event_index[-1], axis=0)
event_data['event_time_offset'].resize(event_index[-1], axis=0)
event_data['event_id'].resize(size * scale, axis=0)
event_data['event_time_offset'].resize(size * scale, axis=0)

for s in range(1, scale):
event_data['event_id'][s * size : (s + 1) * size] = event_data['event_id'][
Expand Down

0 comments on commit 35b145f

Please sign in to comment.