Ticket #8473 (assigned)
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
Note: See
TracTickets for help on using
tickets.
