Skip to content

Commit 4e0733d

Browse files
authored
Merge pull request #315 from scipp/fix-loading-tables-that-contain-error-threshold
Fix loading lookup tables that contain error threshold
2 parents b074552 + 312796c commit 4e0733d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ess/reduce/time_of_flight/workflow.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ def load_tof_lookup_table(filename: TofLookupTableFilename) -> TofLookupTable:
3737
"time_resolution": table.coords["time_resolution"],
3838
}
3939

40+
# Some old tables have the error_threshold stored as an entry in the data group.
41+
# The masking based on uncertainty is now done later, as part of the tof workflow,
42+
# so we need to remove this entry if it exists.
43+
if "error_threshold" in table:
44+
del table["error_threshold"]
45+
4046
return TofLookupTable(**table)
4147

4248

0 commit comments

Comments
 (0)