Skip to content

Commit 925fab2

Browse files
authored
Merge pull request #168 from scipp/fix-loading
fix: avoid loading data several times
2 parents 498c932 + f2864f7 commit 925fab2

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)