httk.atomistic.models.sites.record

Classes

RecordSites

Backend for sites stored in an exact record.

Module Contents

class httk.atomistic.models.sites.record.RecordSites(obj, **hints)[source]

Bases: httk.atomistic.models.sites.backend.SitesBackend

Backend for sites stored in an exact record.

Parameters:
property reduced_coords: httk.core.FracVector[source]

Return the stored reduced coordinates.

Returns:

The exact reduced coordinates.

Return type:

httk.core.FracVector

property precision: fractions.Fraction | None[source]

Return the stored coordinate precision.

Returns:

The fractional precision, or None when unknown.

Return type:

fractions.Fraction | None

reduced_coords_floats()[source]

Return the reduced site coordinates as float rows.

Returns:

The store’s fetched float columns when available, else the exact coordinates as floats.

Return type:

list[list[float]]

property num_sites: int[source]

Return the number of coordinate rows.

Returns:

The store’s fetched row count when available, else the exact row count.

Return type:

int

unwrap()[source]

Return the stored sites record.

Returns:

The source record.

Return type:

httk.atomistic.storage.records.SitesRecord