httk.atomistic.sites_class¶
Backend wrapping a Sites object in the class representation.
Classes¶
Backend for sites backed by an actual |
Module Contents¶
- class httk.atomistic.sites_class.SitesClass(obj: httk.atomistic.sites.Sites, **hints: Any)[source]¶
Bases:
httk.atomistic.sites_backend.SitesBackendBackend for sites backed by an actual
Sitesobject.Its
reduced_coordsaccessor delegates to the wrapped Sites, andunwrapreturns that Sites.- property reduced_coords: httk.core.FracVector[source]¶
- property precision: fractions.Fraction | None[source]¶
How precisely the coordinates were stated, in fractional units, or
None.Fractional, not a length: reduced coordinates are dimensionless and a
Siteshas no cell to convert with.cartesian_precision()does the conversion, where the cell is known.Concrete rather than abstract, so a backend with no source of precision inherits
Noneinstead of breaking.
- unwrap() Any[source]¶
Return the most raw representation possible of this backend, i.e., if it uses a backend with an internal representaion - or if it can (possibly lossly) convert itself into a more raw representation that still would be recognized as a <Something>Like type, that representation will be returned. If this is not possible, the instance itself is returned.