| 1 | SHOWPROBLEM = True |
|---|
| 2 | |
|---|
| 3 | LoadEventNexus(Filename='/SNS/CORELLI/IPTS-12008/nexus/CORELLI_687.nxs.h5', OutputWorkspace='COR_687') |
|---|
| 4 | ConvertUnits(InputWorkspace='COR_687', OutputWorkspace='COR_687_d', Target='dSpacing') |
|---|
| 5 | |
|---|
| 6 | if SHOWPROBLEM is False: |
|---|
| 7 | Rebin(InputWorkspace='COR_687_d', OutputWorkspace='COR_687_d', Params='0.04') |
|---|
| 8 | else: |
|---|
| 9 | Rebin(InputWorkspace='COR_687_d', OutputWorkspace='COR_687_d', Params='0.004') |
|---|
| 10 | |
|---|
| 11 | ws = mtd["COR_687_d"] |
|---|
| 12 | print "After Rebin in d-spacing, Memory size of workspace %s is %.5f MB" %(str(ws), ws.getMemorySize()/1024./1024.) |
|---|
| 13 | |
|---|
| 14 | ConvertUnits(InputWorkspace='COR_687_d', OutputWorkspace='COR_687_d', Target='TOF') |
|---|
| 15 | |
|---|
| 16 | ws = mtd["COR_687_d"] |
|---|
| 17 | print "After ConvertUnits to TOF, Memory size of workspace %s is %.5f MB" %(str(ws), ws.getMemorySize()/1024./1024.) |
|---|