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) mantid.kernel._kernel.VMD :¶
Returns a
VMDobject defining the basis vector for the specified dimension
- getDimension((MDGeometry)self, (int)index) mantid.geometry._geometry.IMDDimension :¶
Returns the description of the
IMDDimensionat 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
IMDDimensionwith 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) mantid.geometry._geometry.IMDDimension :¶
Returns the description of the
IMDDimensionwith 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) mantid.kernel._kernel.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) mantid.geometry._geometry.IMDDimension :¶
Returns the
IMDDimensiondescription mapped to time
- getXDimension((MDGeometry)self) mantid.geometry._geometry.IMDDimension :¶
Returns the
IMDDimensiondescription mapped to X
- getYDimension((MDGeometry)self) mantid.geometry._geometry.IMDDimension :¶
Returns the
IMDDimensiondescription mapped to Y
- getZDimension((MDGeometry)self) mantid.geometry._geometry.IMDDimension :¶
Returns the
IMDDimensiondescription 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