AbstractArray

class ompy.AbstractArray[source]

Bases: object

Abstract class for Matrix and Vector.

Do not initialize itself.

Attributes Summary

shape

Methods Summary

copy()

Return a deepcopy of the class

has_equal_binning()

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

copy()[source]

Return a deepcopy of the class

Return type:

AbstractArray

has_equal_binning()[source]

Raise error as it is implemented in subclass only

Return type:

bool

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