Ticket #11744 (new)

Opened 5 years ago

Last modified 5 years ago

Dimension labels are strange after scaled cut_md

Reported by: Nick Draper Owned by: Owen Arnold
Priority: critical Milestone: Release 3.5
Component: Diffraction Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

Run the following script look at cut_r, the scaling although correct (bragg peaks in integer positions), has a side effect of altering the dimension axes to:

  • ['1.11zeta',0,0]
  • [0, '1.11eta', 0]
  • [0, 0, '1.11x1']

Investigate if there is anything we can do here

ws = Load(Filename='SXD23767.raw',OutputWorkspace='SXD23767',LoadMonitors='Exclude')

SetUB(ws, UB=[-0.15097235,  0.09164432 , 0.00519473 ,0.0831895,   0.14123681, -0.06719047, -0.0384503, -0.05534039, -0.1633801 ])
s = ws.sample()
SetGoniometer(ws)

scales =  'Q in A^-1' # 'Q in lattice units' 
HKL = ConvertToMD(InputWorkspace=ws, QConversionScales=scales, QDimensions='Q3D', dEAnalysisMode='Elastic', Q3DFrames='HKL', OutputWorkspace='HKL', MinValues='-10,-10,-10', MaxValues='10,10,10')


HKL = mtd['HKL']
p = Projection()
p.setType(0, 'r')
p.setType(1, 'r')
p.setType(2, 'r')
proj = p.createWorkspace('proj')

cut_r = CutMD(HKL, Projection=proj, NoPix=True, PBins=[[0.1], [0.1], [0.1]])

p = Projection()
p.setType(0, 'a')
p.setType(1, 'a')
p.setType(2, 'a')
proj = p.createWorkspace('proj')

cut_a = CutMD(HKL, Projection=proj, NoPix=True, PBins=[[0.1], [0.1], [0.1]])

l = -4.0
svw1 = plotSlice(cut_r, colorscalelog=True)
svw1.setSlicePoint(2, l)
svw2 = plotSlice(cut_a, colorscalelog=True)
svw2.setSlicePoint(2, l)

Change History

comment:1 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 12582

Note: See TracTickets for help on using tickets.