- New python validator type: `:class:`~mantid.geometry.OrientedLattice`. Checks whether a workspace has an oriented lattice object attached.
- As part of the initiative to move towards ``Instrument 2.0`` new objects have been exposed to Python and are now available via workspaces. The newly exposed classes include:
- We have been making major performance improvements to geometry access in Mantid over the last few releases. We are now exposing these features via Python to give our users direct access to the same benefits as part of their scripts. The newly exposed objects are now available via workspaces and include:
* :class:`mantid.geometry.ComponentInfo`
* :class:`mantid.geometry.DetectorInfo`
* :class:`mantid.api.SpectrumInfo`
- :class:`mantid.geometry.ComponentInfo` is exposed to allow the user to access geometric information about the components which are part of a beamline. The full documentation can be found at docs/source/api/python/mantid/geometry/ComponentInfo.rst (hyperlink to be added).
- :class:`mantid.geometry.ComponentInfo` is exposed to allow the user to access geometric information about the components which are part of a beamline. The full documentation can be found at this link: `ComponentInfo Documentation <https://github.com/mantidproject/mantid/blob/19664d0a0822c8893b198455e34c4685cfee40af/docs/source/api/python/mantid/geometry/ComponentInfo.rst>`_.
- :class:`mantid.geometry.DetectorInfo` offers the user the ability to access geometric information about the detector(s) which are part of a beamline. ``DetectorInfo`` has also been given an iterator to allow users to write more Pythonic loops rather than normal index based loops - this is also helpful for abstraction. The full documentation can be found at docs/source/api/python/mantid/geometry/DetectorInfo.rst (hyperlink to be added).
- :class:`mantid.geometry.DetectorInfo` offers the user the ability to access geometric information about the detector(s) which are part of a beamline. ``DetectorInfo`` has also been given an iterator to allow users to write more Pythonic loops rather than normal index based loops. The full documentation can be found at this link: `DetectorInfo Documentation <https://github.com/mantidproject/mantid/blob/7227b49ed4b76dee2ddbe7e91c84f07418738ce7/docs/source/api/python/mantid/geometry/DetectorInfo.rst>`_.
- :class:`mantid.api.SpectrumInfo` allows the user to access information about the spectra being used in a beamline. In addition to this ``SpectrumDefinition`` objects can also be accessed via a :class:`mantid.api.SpectrumInfo` object. The full documentation can be found at docs/source/api/python/mantid/api/SpectrumInfo.rst (hyperlink to be added).
- :class:`mantid.api.SpectrumInfo` allows the user to access information about the spectra being used in a beamline. ``SpectrumInfo`` has also been given an iterator to allow users to write more Pythonic loops rather than normal index based loops. In addition to this ``SpectrumDefinition`` objects can also be accessed via a :class:`mantid.api.SpectrumInfo` object. The ``SpectrumDefinition`` object can be used to obtain information about the spectrum to detector mapping and also provides a definition of what a spectrum comprises, i.e., indices of all detectors that contribute to the data stored in the spectrum. The full documentation can be found at this link: `SpectrumInfo Documentation <https://github.com/mantidproject/mantid/blob/98d01d0b6056b93c8e2a647baa204187e7cfc3c9/docs/source/api/python/mantid/api/SpectrumInfo.rst>`_.
Improvements
############
SpectrumInfo now has more methods exposed to Python meaning users can access more information about the beamline that they are using.
- :ref:`ChudleyElliot <func-ChudleyElliot>` includes hbar in the definition