Ticket #7184 (closed: fixed)
Add splitters information workspace to SNSPowderReduction
Reported by: | Peter Peterson | Owned by: | Wenduo Zhou |
---|---|---|---|
Priority: | minor | Milestone: | Release 2.6 |
Component: | Diffraction | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Peter Peterson |
Description
Since it is created in the reduction gui, it should be used in SNSPowderReduction when splitting workspaces. Normal caveats about it being optional and sanity checked against the splitting workspace apply.
Change History
comment:2 Changed 7 years ago by Wenduo Zhou
Checkpointing work. Refs #7184.
Changeset: 430099162dd1b8c2518c20d51df656a590419c87
comment:3 Changed 7 years ago by Wenduo Zhou
Instruction for verification
Run the script as following:
# Modified from SNSPowderRedux.py
from mantidsimple import *
def getSaveDir():
"""determine where to save - the current working directory"""
import os
return os.path.abspath(os.path.curdir)
# From PG3Analysis(stresstesting.MantidStressTest)
cal_file = "PG3_FERNS_d4832_2011_08_24.cal"
char_file = "PG3_characterization_2011_08_31-HR.txt"
savedir = getSaveDir()
# Generate event splitters
Load(Filename=r'PG3_4844_event.nxs',OutputWorkspace='PG3_4844_Log',Precount='1', MetaDataOnly=True)
GenerateEventsFilter(InputWorkspace='PG3_4844_Log',
OutputWorkspace='TimeSplitters', InformationWorkspace='SplitterInformation', TimeInterval='500', TitleOfSplitters='Even time splitter')
# run the actual code
SNSPowderReduction(
Instrument="PG3", RunNumber=4844, Extension="_event.nxs", PreserveEvents=True, CalibrationFile=cal_file, CharacterizationRunsFile=char_file, LowResRef=15000, RemovePromptPulseWidth=50, Binning=-0.0004, BinInDspace=True, FilterBadPulses=True, SaveAs="gsas and fullprof and pdfgetn", OutputDirectory=savedir, NormalizeByCurrent=True, FinalDataUnits="dSpacing", SplittersWorkspace="TimeSplitters", SplitInformationWorkspace="SplitterInformation")
In the output workspaces with name starting as 'PG3_4844', you can check the title of them with the splitter information workspace to see whether they match.
comment:4 Changed 7 years ago by Wenduo Zhou
Fixed some error to pass test. Refs #7184.
Changeset: 412cabac1fc53402942d879db0b87092524d6805
comment:5 Changed 7 years ago by Wenduo Zhou
- Status changed from accepted to verify
- Resolution set to fixed
comment:6 Changed 7 years ago by Peter Peterson
- Status changed from verify to verifying
- Tester set to Peter Peterson
comment:10 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 8030