Skip to content

Commit

Permalink
Fix grow_nexus script length calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonHeybrock committed Oct 10, 2024
1 parent da717ec commit 9b49927
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 9b49927

Please sign in to comment.