Sample
This is a Python binding to the C++ class Mantid::API::Sample.
-
class mantid.api.Sample((object)arg1)
-
__init__((object)arg1) → None
-
clearCrystalStructure((Sample)self) → None :
Removes the internally stored crystal structure.
-
getCrystalStructure((Sample)self) → CrystalStructure :
Get the crystal structure for this sample
-
getGeometryFlag((Sample)self) → int :
Return the geometry flag.
-
getHeight((Sample)self) → float :
Return the height in mm
-
getMaterial((Sample)self) → Material :
The material the sample is composed of
-
getName((Sample)self) → str :
Returns the string name of the sample
-
getOrientedLattice((Sample)self) → OrientedLattice :
Get the oriented lattice for this sample
-
getShape((Sample)self) → IObject :
Returns a shape of a Sample object.
-
getThickness((Sample)self) → float :
Return the thickness in mm
-
getWidth((Sample)self) → float :
Return the width in mm
-
hasCrystalStructure((Sample)self) → bool :
Returns True if this sample has a crystal structure, false otherwise
-
hasOrientedLattice((Sample)self) → bool :
Returns True if this sample has an oriented lattice, false otherwise
-
setCrystalStructure((Sample)self, (CrystalStructure)newCrystalStructure) → None :
Assign a crystal structure object to the sample.
-
setGeometryFlag((Sample)self, (int)geom_id) → None :
Set the geometry flag.
-
setHeight((Sample)self, (float)height) → None :
Set the height in mm.
-
setThickness((Sample)self, (float)thick) → None :
Set the thickness in mm.
-
setWidth((Sample)self, (float)width) → None :
Set the width in mm.
-
size((Sample)self) → int :
Return the number of samples contained within this sample