OldStyleField
- class hcipy.field.OldStyleField(arr, grid)[source]
Bases:
FieldBase,ndarrayA Field based on subclassing a Numpy array.
This constitutes an “old-style” Field object. Due to problems and inflexibilities in the way subclassing works, we are gradually transitioning to “new-style” fields (see
NewStyleField) which use the dispatch mechanism introduced by Numpy 1.13.- Parameters:
- Attributes:
- gridGrid
The grid on which the values are defined.
Methods Summary
from_dict(tree)Make a Field from a dictionary, previously created by to_dict().
to_dict()Convert the object to a dictionary for serialization.
Methods Documentation