\(\renewcommand\AA{\unicode{x212B}}\)
MDGeometry¶
This is a Python binding to the C++ class Mantid::API::MDGeometry.
- class mantid.api.MDGeometry¶
- clearOriginalWorkspaces((MDGeometry)self) None : ¶
Clear any attached original workspaces
- estimateResolution((MDGeometry)self) numpy.ndarray : ¶
Returns a numpy array containing the width of the smallest bin in each dimension
- getBasisVector((MDGeometry)self, (int)index) VMD : ¶
Returns a
VMD
object defining the basis vector for the specified dimension
- getDimension((MDGeometry)self, (int)index) IMDDimension : ¶
Returns the description of the
IMDDimension
at the given index (starts from 0). Raises RuntimeError if index is out of range.
- getDimensionIndexById((MDGeometry)self, (str)id) int : ¶
Returns the index of the
IMDDimension
with the given ID. Raises RuntimeError if the name does not exist.
- getDimensionIndexByName((MDGeometry)self, (str)name) int : ¶
Returns the index of the dimension with the given name. Raises RuntimeError if the name does not exist.
- getDimensionWithId((MDGeometry)self, (str)id) IMDDimension : ¶
Returns the description of the
IMDDimension
with the given id string. Raises ValueError if the string is not a known id.
- getGeometryXML((MDGeometry)self) str : ¶
Returns an XML representation, as a string, of the geometry of the workspace
- getNonIntegratedDimensions((MDGeometry)self) list : ¶
Returns the description objects of the non-integrated dimension as a python list of
IMDDimension
.
- getNumDims((MDGeometry)self) int : ¶
Returns the number of dimensions present
- getNumNonIntegratedDims((MDGeometry)self) int : ¶
Returns the number of non-integrated dimensions present
- getNumberTransformsFromOriginal((MDGeometry)self) int : ¶
Returns the number of transformations from original workspace coordinate systems
- getNumberTransformsToOriginal((MDGeometry)self) int : ¶
Returns the number of transformations to original workspace coordinate systems
- getOrigin((MDGeometry)self) VMD : ¶
Returns the vector of the origin (in the original workspace) that corresponds to 0,0,0… in this workspace
- getOriginalWorkspace((MDGeometry)self, (int)index) Workspace : ¶
Returns the source workspace attached at the given index
- getTDimension((MDGeometry)self) IMDDimension : ¶
Returns the
IMDDimension
description mapped to time
- getXDimension((MDGeometry)self) IMDDimension : ¶
Returns the
IMDDimension
description mapped to X
- getYDimension((MDGeometry)self) IMDDimension : ¶
Returns the
IMDDimension
description mapped to Y
- getZDimension((MDGeometry)self) IMDDimension : ¶
Returns the
IMDDimension
description mapped to Z
- hasOriginalWorkspace((MDGeometry)self, (int)index) bool : ¶
Returns True if there is a source workspace at the given index
- numOriginalWorkspaces((MDGeometry)self) int : ¶
Returns the number of source workspaces attached