Ticket #3675 (closed: fixed)
create an algorithm to transform a processed workspace into MDWorkspace for inelastic instruments
Reported by: | Alex Buts | Owned by: | Alex Buts |
---|---|---|---|
Priority: | major | Milestone: | Iteration 30 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Stuart Campbell |
Description
Change History
comment:1 Changed 9 years ago by Alex Buts
- Status changed from new to accepted
- Owner set to Alex Buts
comment:10 Changed 9 years ago by Alex Buts
In [14554]:
comment:11 Changed 9 years ago by Alex Buts
In [14558]:
comment:12 Changed 9 years ago by Alex Buts
In [14586]:
comment:13 Changed 9 years ago by Alex Buts
In [14609]:
comment:14 Changed 9 years ago by Alex Buts
In [14610]:
comment:15 Changed 9 years ago by Alex Buts
- Status changed from accepted to verify
- Resolution set to fixed
It looks like MDEvent workspace has its default internal coordinate system. If this is right, the algorithm is complete, as the algorithm transforms the data into this coordinate system.
I can not currently be sure how user requests for an arbitrary coordinate system would be satisfied.
Also additional checks are needed to be sure, what coordinate system is used for MDEvent workspace.
comment:16 Changed 9 years ago by Andrei Savici
- Status changed from verify to verifying
- Tester set to Andrei Savici
comment:17 Changed 9 years ago by Andrei Savici
I created a matrix workspace using the following script, where the test.mat file contains a UB matrix one on the diagonal, 0 off-diagonal
Load(Filename='~/Mantid/Test/AutoTestData/CNCS_7860_event.nxs',OutputWorkspace='CNCS_7860_event') ConvertUnits(InputWorkspace='CNCS_7860_event',OutputWorkspace='CNCS_7860_event',Target='DeltaE',EMode='Direct',EFixed='3') AddSampleLog(Workspace='CNCS_7860_event',LogName='phi',LogText='0',LogType='Number Series') AddSampleLog(Workspace='CNCS_7860_event',LogName='chi',LogText='0',LogType='Number Series') AddSampleLog(Workspace='CNCS_7860_event',LogName='omega',LogText='0',LogType='Number Series') LoadIsawUB(InputWorkspace='CNCS_7860_event',Filename='~/test.mat') Rebin(InputWorkspace='CNCS_7860_event',OutputWorkspace='s1',Params='-2.9,0.05,2.9',PreserveEvents='0')
Memory used for s1 is about 140MB
Then run ConvertToQ3DdE with the following parameters: InputWorkspace: s1 OutputWorkspace: s2 EnergyInput: 3 UsedPreprocessedDetectors: True MinQdE_values: -2,-2,-2,-3 MinQdE_values: 2,2,2,3
The output s2 is an MDEventWorkspace, with 625 MDBoxes. The boxes take 141 kB. There are no events, and the total size is 141 kB.
Something is obviously wrong
comment:18 Changed 9 years ago by Andrei Savici
- Status changed from verifying to reopened
- Resolution fixed deleted
comment:19 Changed 9 years ago by Alex Buts
In [14794]:
comment:20 Changed 9 years ago by Alex Buts
In [14797]:
comment:21 Changed 9 years ago by Russell Taylor
In [14798]:
comment:22 Changed 9 years ago by Alex Buts
In [14799]:
comment:23 Changed 9 years ago by Alex Buts
In [14808]:
comment:25 Changed 9 years ago by Alex Buts
- Status changed from accepted to verify
- Resolution set to fixed
comment:26 Changed 9 years ago by Martyn Gigg
- Status changed from verify to verifying
- Tester changed from Andrei Savici to Martyn Gigg
comment:27 Changed 9 years ago by Martyn Gigg
- Status changed from verifying to verify
- Tester Martyn Gigg deleted
Can't test this with the data we have, passing back to the pool.
comment:28 Changed 9 years ago by Stuart Campbell
- Status changed from verify to verifying
- Tester set to Stuart Campbell
comment:29 Changed 9 years ago by Stuart Campbell
- Status changed from verifying to closed
I re-ran Andrei's scriptlet above, but just used the TOPAZ_3007.mat file from the AutoTestData directory.
Michael plotted it using the VATES GUI and it shows something as a function of Et. So I'd say this is good enough until we push it further.
comment:30 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 4522