Skip to content

Commit b947ddd

Browse files
committed
fix: avoid loading data several times
1 parent 7239cfe commit b947ddd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ess/estia/mcstas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def parse_events_h5(f):
6969
'NXentry/NXdetector/NXdata/events',
7070
'NXentry/simulation/Param',
7171
)
72+
events = events[()]
7273
da = sc.DataArray(
7374
# The squares on the variances is the correct way to load weighted event data.
7475
# Consult the McStas documentation

0 commit comments

Comments
 (0)