diff --git a/src/ess/estia/mcstas.py b/src/ess/estia/mcstas.py index 717f086e..e1856196 100644 --- a/src/ess/estia/mcstas.py +++ b/src/ess/estia/mcstas.py @@ -69,6 +69,7 @@ def parse_events_h5(f): 'NXentry/NXdetector/NXdata/events', 'NXentry/simulation/Param', ) + events = events[()] da = sc.DataArray( # The squares on the variances is the correct way to load weighted event data. # Consult the McStas documentation