orbithunter.core.Orbit._parse_state

Orbit._parse_state(state, basis, **kwargs)[source]

Parse and assign ‘state’, ‘basis’ and ‘discretization’ attributes.

Parameters
statendarray

Numpy array containing state information, can have any number of dimensions.

basisstr

The basis that the array ‘state’ is in.

Notes

Must assign attributes ‘state’, ‘basis’, ‘discretization’ as None if no input received, even though technically shape of empty array will be, for example, (0, 0). In other words, discretization being NoneType acts as a flag that the state is unpopulated.