Ticket #4361 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

ConjoinWorkspaces does not carry over masking from the second workspace

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: major Milestone: Release 2.0
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Peter Parker

Description

Seen with this script

Load('OSI11886.raw', 'top',SpectrumMin=1,SpectrumMax=3)
Load('OSI11886.raw', 'bottom',SpectrumMin=4,SpectrumMax=6)

MaskDetectors('top',WorkspaceIndexList=[1])
MaskDetectors('bottom',WorkspaceIndexList=[2])

print 'Index 1 in top is masked',mtd['top'].getDetector(1).isMasked()
print 'Index 2 in bottom is masked',mtd['bottom'].getDetector(2).isMasked()

print 'Running Conjoin'
ConjoinWorkspaces('top', 'bottom')
print 'Index 1 in top is masked',mtd['top'].getDetector(1).isMasked()
print 'Index 5 in top is masked',mtd['top'].getDetector(5).isMasked()

Change History

comment:1 Changed 9 years ago by Martyn Gigg

Refs #4361. Fix ConjoinWorkspaces so that it propagates spectrum masks

Changeset: 42ac5039aba175d7343b34f338a3fa680e1c0316

comment:2 Changed 9 years ago by Martyn Gigg

  • Status changed from new to accepted

comment:3 Changed 9 years ago by Martyn Gigg

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:4 Changed 9 years ago by Peter Parker

  • Status changed from verify to verifying
  • Tester set to Peter Parker

comment:5 Changed 9 years ago by Peter Parker

  • Status changed from verifying to closed

Works for me:

Index 1 in top is masked True
Index 2 in bottom is masked True
Running Conjoin
Index 1 in top is masked True
Index 5 in top is masked True

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5208

Note: See TracTickets for help on using tickets.