httk.atomistic.models.structuretype.view

Lazy structuretype presentation view.

Classes

StructuretypeView

Present a structuretype or ordinary structure lazily as a structuretype.

Module Contents

class httk.atomistic.models.structuretype.view.StructuretypeView(obj, **hints)[source]

Bases: httk.atomistic.models.structuretype.view_base.StructuretypeViewBase, httk.atomistic.models.structuretype.structuretype.Structuretype

Present a structuretype or ordinary structure lazily as a structuretype.

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

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

property periodicity

Return the presented periodic directions.

property nperiodic_dimensions

Return the number of presented periodic directions.

property nsites

Return the number of presented sites.

cartesian_sites()[source]

Return the exact Cartesian presented site positions.

property coordinate_precision

Return the presented coordinate precision.

property basis_precision

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 structuretype value.

Return type:

httk.atomistic.models.structuretype.structuretype.Structuretype