Ticket #10336 (assigned)

Opened 6 years ago

Last modified 5 years ago

NaNs are lost somewhere on the way from MD Workspace to Matix workspace

Reported by: Alex Buts Owned by: Roman Tolchenov
Priority: major Milestone: Backlog
Component: Framework Keywords:
Cc: helen.c.walker@… Blocked By:
Blocking: Tester:

Description

If one runs script below and looks at the result in the slice viewer the area which are not covered by the image (and dead pixels) correctly marked as NaN-s(source file is not important -- any nxspe would produce similar result).

When one wants to produce nice image from the observed slice, he takes binned image and converts it into matrix workspace for plotting. At this stage matrix workspace contains zeros in place of NaNs which mixes legitimate zero signal areas with areas with NaN-s

This should be fixed and NaN-s should be retained.

LoadNXSPE(Filename=r'Z:\Helen\MER23357_75meV_on2one.nxspe', OutputWorkspace='cur_ws')
AddSampleLog(Workspace='cur_ws', LogName='Psi', LogText='0.', LogType='Number')
SetUB(Workspace='cur_ws', a=5.9470000000000001, b=10.300000000000001, c=6.7220000000000004, beta=107.16, u='0,0,1')
SetGoniometer(Workspace='cur_ws', Axis0='Psi,0,1,0,1')
ConvertToMD(InputWorkspace='cur_ws', QDimensions='Q3D', Q3DFrames='HKL', QConversionScales='HKL', PreprocDetectorsWS='preprDetMER', OutputWorkspace='target_MDws', OverwriteExisting=False, SplitInto='50,50,50,60', MaxRecursionDepth=1)
BinMD(InputWorkspace='target_MDws', AlignedDim0='[H,0,0],-3,3,150', AlignedDim1='DeltaE,0,50,100', AlignedDim2='[0,K,0],0.4,0.6,1', OutputExtents='-3,3,0,50,0.4,0.6', OutputBins='150,100,1', OutputWorkspace='hslice_0p5')


Change History

comment:1 Changed 6 years ago by Nick Draper

  • Status changed from new to assigned
  • Owner set to Roman Tolchenov

Roman can you try to track this one down, speak to Alex and Owen to get a start

comment:2 Changed 6 years ago by Alex Buts

To simplify the ticket verification I've placed the source file used in the example above at ftp://ftp.nd.rl.ac.uk/scratch/abuts/Ticket_10336/MER23357_75meV_on2one.nxspe

comment:3 Changed 6 years ago by Alex Buts

Last edited 6 years ago by Alex Buts (previous) (diff)

comment:4 Changed 6 years ago by Nick Draper

Moved to the backlog at the code freeze of R3.3

comment:5 Changed 6 years ago by Nick Draper

  • Milestone changed from Release 3.3 to Backlog

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 11178

Note: See TracTickets for help on using tickets.