Ticket #8036 (assigned)
SaveNexusProcessed and LoadNexusProcessed changes masked detectors
Reported by: | Wenduo Zhou | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | Backlog |
Component: | Framework | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
The defect is found while running the attached script. As the final result of the script, the result of the division in last step (stored in workspace NOM_18251) has non-zero uncertainties. But do the division between 2 workspaces that are loaded from the saved Nexus file (NOM_18250_Foc.nxs and NOM_18251_Foc.nxs) in this script renders a result with zero uncertainties. Theoretically, it should be the same as 'NOM_18251'.
Some investigation was made. And it is found that the detectors in the workspace loaded from the processed Nexus files are flagged as 'masked'. Thus algorithm BinaryOperation just put ZERO (value and uncertainties) in the output workspace.
Thus the problem must occur in either LoadNexusProcessed or SaveNexusProcessed when they deal with some spectra with multiple detectors, among which some detectors are masked.