httk.atomistic.models.crystalpattern.view

Lazy anonymous-structure presentation view.

Classes

CrystalPatternView

Present an anonymous or ordinary structure lazily as an anonymous structure.

Module Contents

class httk.atomistic.models.crystalpattern.view.CrystalPatternView(obj, **hints)[source]

Bases: httk.atomistic.models.crystalpattern.view_base.CrystalPatternViewBase, httk.atomistic.models.crystalpattern.crystalpattern.CrystalPattern

Present an anonymous or ordinary structure lazily as an anonymous structure.

Parameters:
  • obj (Any) – The anonymous-structure-like or structure-like object to present.

  • **hints (Any) – Backend-selection hints.

property periodicity[source]

Return the presented periodic directions.

property nperiodic_dimensions[source]

Return the number of presented periodic directions.

property nsites[source]

Return the number of presented sites.

cartesian_sites()[source]

Return the exact Cartesian presented site positions.

property coordinate_precision[source]

Return the presented coordinate precision.

property basis_precision[source]

Return the presented basis precision.

unwrap()[source]

Return the raw object behind the backend.

Returns:

The unwrapped source object.

Return type:

Any

unview()[source]

Return the presented structure as a standalone value.

Returns:

The anonymous structure value.

Return type:

httk.atomistic.models.crystalpattern.crystalpattern.CrystalPattern