AbstractArray¶
- class ompy.AbstractArray[source]¶
Bases:
object
Abstract class for Matrix and Vector.
Do not initialize itself.
Attributes Summary
Methods Summary
copy
()Return a deepcopy of the class
Raise error as it is implemented in subclass only
verify_equdistant
(axis)Runs checks to verify if energy arrays are equidistant
Attributes Documentation
- shape¶
Methods Documentation
- verify_equdistant(axis)[source]¶
Runs checks to verify if energy arrays are equidistant
- axis: The axis to project onto.
Can be either of (0, ‘Eg’, ‘x’), (1, ‘Ex’, ‘y’)
- Raises:
ValueError – If any check fails