Ticket #11695 (closed: invalid)
Problem with ConvertToMD powder mode.
| Reported by: | Alex Buts | Owned by: | Andrei Savici | 
|---|---|---|---|
| Priority: | critical | Milestone: | Release 3.4 | 
| Component: | Framework | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Tester: | Alex Buts | 
Description (last modified by Alex Buts) (diff)
Run script:
#################################################
# ConvertToMD bug #
#################################################
root=os.path.dirname(os.path.realpath(__file__))
config.appendDataSearchDir(root)
config['defaultsave.directory']=root
source_file = 'MAP05935_ei34.nxspe'
mat_ws = 'MAP05935'
target = 'MAP05935_QdE'
if not mat_ws in mtd:
    Load(Filename=source_file, OutputWorkspace=mat_ws)
   
if not target in mtd:
    SofQW(InputWorkspace=mat_ws, OutputWorkspace=target, QAxisBinning='0,0.02,5', EMode='Direct')
plotSlice(target)
targetMD= target+'_MD'
ConvertToMD(InputWorkspace=mat_ws, QDimensions='|Q|', OutputWorkspace=targetMD, OverwriteExisting=True, SplitInto='200,80',\
PreprocDetectorsWS='PreprocessedDetectorsWS',MinValues='0,-5',MaxValues='5,20')
plotSlice(targetMD)
With the data can be found at ftp://ftp.nd.rl.ac.uk/scratch/abuts/Ticket_11695/
When results produced by SofQW1 look correct (bar normalization), ConvertToMD produces huge gap in q-dE space. See the picture attached.
Attachments
Change History
comment:2 Changed 5 years ago by Andrei Savici
- Status changed from new to verify
 - Resolution set to invalid
 
One must rebin the data in slice viewer. The problem occurs because the event workspace is not a regular grid, and when a large number of events is in a box, that box is subdivided. With the large split numbers in the script, it is likely that user just cannot see the small boxes.
Note: See
        TracTickets for help on using
        tickets.
    