\(\renewcommand\AA{\unicode{x212B}}\)
Instrument¶
This is a Python binding to the C++ class Mantid::Geometry::Instrument.
bases: mantid.geometry.CompAssembly
- class mantid.geometry.Instrument¶
- findRectDetectors((Instrument)self) std_vector_rectangular_detector :¶
Return a list of rectangular detectors.
- getBaseInstrument((Instrument)self) Instrument :¶
Return reference to the base instrument
- getBoolParameter((Component)self, (str)pname[, (bool)recursive=True]) std_vector_bool¶
- getComponentByName((Instrument)self, (str)cname[, (int)nlevels=0]) IComponent :¶
Returns the named
Component
- getDescription((Component)self) str :¶
Return the description of current parameterized component
- getDistance((IComponent)self, (IComponent)other) float :¶
Returns the distance, in metres, between this and the given component
- getFullName((IComponent)self) str :¶
Returns full path name of component
- getIntParameter((Component)self, (str)pname[, (bool)recursive=True]) std_vector_int¶
- getName((IComponent)self) str :¶
Returns the name of the component
- getNumberParameter((Component)self, (str)pname[, (bool)recursive=True]) std_vector_dbl¶
- getParameterNames((Component)self[, (bool)recursive=True]) std_set_str¶
- getPos((IComponent)self) V3D :¶
Returns the absolute position of the component
- getPositionParameter((Component)self, (str)pname[, (bool)recursive=True]) std_vector_v3d¶
- getReferenceFrame((Instrument)self) ReferenceFrame :¶
Returns the
ReferenceFrameattached that defines the instrument axes
- getRelativeRot((IComponent)self) Quat :¶
Returns the relative rotation as a Quat
- getRotationParameter((Component)self, (str)pname[, (bool)recursive=True]) std_vector_quat¶
- getShortDescription((Component)self) str :¶
Return the short description of current parameterized component
- getStringParameter((Component)self, (str)pname[, (bool)recursive=True]) std_vector_str¶
- getValidFromDate((Instrument)self) DateAndTime :¶
Return the valid from
DateAndTimeof the instrument
- getValidToDate((Instrument)self) DateAndTime :¶
Return the valid to
DateAndTimeof the instrument
- nelements((ICompAssembly)self) int :¶
Returns the number of elements in the assembly
- setDescription((Component)self, (str)descr) None :¶
Set component’s description, works only if the component is parameterized component
- type((IComponent)self) str :¶
Returns the type of the component represented as a string