Table of Contents
Warning
Users: Instruments in Mantid will no longer silently discard detectors defined with duplicate IDs. This has been a long-standing source of hard to find issue in Mantid. We have endeavoured to ensure that all Instrument Definition Files shipped with Mantid are now corrected. If you have local IDFs, please update them to remove any duplicate IDs, or ask the Mantid Team for help, the warning and error information in Mantid will give details about duplicates in IDFs that cannot be loaded.
Beware that LoadNexusProcessed will now NOT load the Instrument from historic Processed Nexus files if the embedded IDF is corruped with duplicate detector IDs. The workspace (data) part will still load, but the workspace will not have any Instrument attached. There are new warnings generated that describe the exact problem and the remedy when this happens. Note that the fix is generally easy. You should be able to run LoadInstrument on the Workspace, pointing it to an updated IDF, which is free of duplicates.
Please contact the Mantid Team if you experience any further problems as a result of these changes.
from mantid.simpleapi import *
import json
source = json.loads('{"Filename":"CNCS_7860_event.nxs"}')
props = json.loads('{"InputWorkspace":"eventWS", "Params":"1000"}')
eventWS = Load(**source)
rebinned = Rebin(**props)