LatticeView#

class blueprints.LatticeView[source]#

Bases: LatticeViewType

A LatticeView is created whenever a Lattice is indexed. Attribute getter and setter are handled through this View similar to View. For details have a look at Lattice.

Attributes Summary

n_dim

The number of dimensions in the Lattice

Attributes Documentation

n_dim#

The number of dimensions in the Lattice

Return type:

int

__init__(things, parent, keys=())[source]#
Parameters:
  • things (list) – The indexed Things of the parent Lattice

  • parent (blue.LatticeType) – The Lattice which was indexed to create the LatticeView

  • keys (tuple[int | slice]) – The keys used to index the Lattice

classmethod __new__(*args, **kwargs)#