UnitCell¶
-
class
sknano.core.crystallography.
UnitCell
(lattice=None, basis=None, coords=None, cartesian=False, wrap_coords=False)[source] [edit on github][source]¶ Bases:
sknano.core.meta.BaseClass
,sknano.core.strings.TabulateMixin
Base class for abstract representations of crystallographic unit cells.
Parameters: - lattice (
LatticeBase
sub-class) – - basis ({
list
,BasisAtoms
}) – - coords ({
list
}, optional) – - cartesian ({
bool
}, optional) – - wrap_coords ({
bool
}, optional) –
Attributes
fmtstr
Format string. Methods
rotate
(**kwargs)Rotate unit cell lattice vectors and basis. todict
()Return dict
ofUnitCell
parameters.translate
(t[, fix_anchor_points])Translate unit cell basis. Methods Summary
rotate
(**kwargs)Rotate unit cell lattice vectors and basis. todict
()Return dict
ofUnitCell
parameters.translate
(t[, fix_anchor_points])Translate unit cell basis. Methods Documentation
-
rotate
(**kwargs)[source] [edit on github][source]¶ Rotate unit cell lattice vectors and basis.
-
translate
(t, fix_anchor_points=True)[source] [edit on github][source]¶ Translate unit cell basis.
- lattice (