Ticket #5112: BuildSQW.py

File BuildSQW.py, 841 bytes (added by Alex Buts, 8 years ago)
Line 
1print 'start\n'
2cur_ws='wsn';
3md_ws='mdws4D';
4MDWSF='';
5print 'for\n'
6for n in range(15052,15179):
7        print 'Load\n' 
8#    LoadNXSPE(Filename='D:/Data/Fe/Fe_Mantid/MAP'+str(n)+'.nxspe',OutputWorkspace=cur_ws)
9        print 'SetUB\n'         
10#       SetUB(Workspace=cur_ws,a='2.87',b='2.87',c='2.87')
11#       ConvertToMDEvents(InputWorkspace=cur_ws,OutputWorkspace=md_ws,QDimensions='Q3D',UsePreprocessedDetectors='1',MinValues='-4.2,-4.2,-4.2,-50',MaxValues='4.2,4.2,4.2,350',SplitInto='50',MaxRecursionDepth='1',MinRecursionDepth='1')
12#       SaveMD(md_ws,'MDMAP'+str(n)+'.nxs');
13#       DeleteWorkspace(md_ws);
14#       DeleteWorkspace(cur_ws);       
15        MDWSF=MDWSF+'MDMAP'+str(n)+'.nxs;';
16
17# Correct syntaxis: MergeMDFiles(MDWSF,OutputFilename='fe400_8k.nxs',Parallel='1');
18# Wrons syntaxis:
19MergeMDFiles(MDWSF,'ws2',OutputFilename='fe400_8k.nxs',Parallel='1',OutputFilename='fe400_8k.nxs');