Ticket #8473 (assigned)

Opened 7 years ago

Last modified 5 years ago

Return default nominal distance for empty HYSPEC instrument

Reported by: Stuart Campbell Owned by: Andrei Savici
Priority: major Milestone: Backlog
Component: Direct Inelastic Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

If we are to create an empty instrument by loading the HYSPEC definition file, then query the position of the monitors, we get 0.0 rather than a sensible nominal distance.

w1=LoadEmptyInstrument(Filename=r'/opt/Mantid/instrument/HYSPEC_Definition.xml')
inst=w1.getInstrument()
monitor1=inst.getComponentByName('monitor1')
source = inst.getSource()
print monitor1.getDistance(source)
0.0
monitor2=inst.getComponentByName('monitor2')
print monitor2.getDistance(source)
0.0

Change History

comment:1 Changed 7 years ago by Andrei Savici

  • Milestone changed from Release 3.1 to Backlog

comment:2 Changed 7 years ago by Nick Draper

  • Status changed from new to assigned

bulk move to assigned at the into of the triage step

comment:3 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 9317

Note: See TracTickets for help on using tickets.