Typing aliases (cmomy.core.typing)#

Classes:

DataT

DataArray or Dataset

FloatT

TypeVar of floating point precision (np.float32, np.float64, default=Any)

SamplerArrayT

TypeVar of types wrapped by IndexSampler

Data:

IndexAny

Index

class cmomy.core.typing.DataT#

DataArray or Dataset

alias of TypeVar(‘DataT’, ~xarray.core.dataarray.DataArray, ~xarray.core.dataset.Dataset)

class cmomy.core.typing.FloatT#

TypeVar of floating point precision (np.float32, np.float64, default=Any)

alias of TypeVar(‘FloatT’, ~numpy.float64, ~numpy.float32)

class cmomy.core.typing.SamplerArrayT#

TypeVar of types wrapped by IndexSampler

alias of TypeVar(‘SamplerArrayT’, NDArrayAny, ~xarray.core.dataarray.DataArray, ~xarray.core.dataset.Dataset, xr.DataArray | xr.Dataset)

cmomy.core.typing.Axes(*args, **kwargs)#

Axes type

alias of int | tuple[int, ...]

cmomy.core.typing.AxesWrap(*args, **kwargs)#

Axes type (with wrapping)

alias of complex | tuple[complex, ...]

cmomy.core.typing.AxisReduce(*args, **kwargs)#

Reduction axes type

alias of int | None

cmomy.core.typing.AxisReduceWrap(*args, **kwargs)#

Reduction axes type (with wrapping)

alias of complex | None

cmomy.core.typing.AxisReduceMult(*args, **kwargs)#

Reduction axes type (multiple)

alias of int | tuple[int, ...] | None

cmomy.core.typing.AxisReduceMultWrap(*args, **kwargs)#

Reduction axes type (multiple, with wrapping)

alias of complex | tuple[complex, ...] | None

cmomy.core.typing.RngTypes(*args, **kwargs)#

Random number generator types

alias of int | Sequence[int] | SeedSequence | BitGenerator | Generator

cmomy.core.typing.DTypeAny[source]#

Any dtype

cmomy.core.typing.FloatDTypes(*args, **kwargs)#

Floating dtype

alias of float32 | float64

cmomy.core.typing.LongIntDType[source]#

Long integer dtype

cmomy.core.typing.NDArrayAny(*args, **kwargs)#

Array type (any dtype)

alias of ndarray[tuple[Any, …], dtype[Any]]

cmomy.core.typing.NDArrayInt(*args, **kwargs)#

Array type (int dtype)

alias of ndarray[tuple[Any, …], dtype[int64]]

cmomy.core.typing.NDArrayFloats(*args, **kwargs)#

Array type (float dtype)

alias of ndarray[tuple[Any, …], dtype[float32 | float64]]

cmomy.core.typing.NDArrayBool(*args, **kwargs)#

Array type (bool dtype)

alias of ndarray[tuple[Any, …], dtype[bool]]

cmomy.core.typing.IntDTypeT[source]#

Integer dtype

cmomy.core.typing.NDGeneric(*args, **kwargs)#

Float or array of float

alias of FloatT | ndarray[tuple[Any, …], dtype[FloatT]]

cmomy.core.typing.Moments(*args, **kwargs)#

Moments type

alias of int | tuple[int] | tuple[int, int]

cmomy.core.typing.MomentsStrict(*args, **kwargs)#

Strict moments type

alias of tuple[int] | tuple[int, int]

cmomy.core.typing.MomNDim(*args, **kwargs)#

Number of moment dimensions

alias of Literal[1, 2]

cmomy.core.typing.MomAxes(*args, **kwargs)#

Axes containing moment(s).

alias of int | tuple[int] | tuple[int, int]

cmomy.core.typing.MomAxesStrict(*args, **kwargs)#

Axes containing moment(s).

alias of tuple[int] | tuple[int, int]

cmomy.core.typing.DimsReduce(*args, **kwargs)#

Reduction dimension

alias of Hashable | None

cmomy.core.typing.DimsReduceMult(*args, **kwargs)#

Reduction dimension(s)

alias of Hashable | Collection[Hashable] | None

cmomy.core.typing.Dims(*args, **kwargs)#

Dimensions

alias of str | Collection[Hashable] | EllipsisType | None

cmomy.core.typing.MomDims(*args, **kwargs)#

Dimensions containing moment(s)

alias of Hashable | tuple[Hashable] | tuple[Hashable, Hashable]

cmomy.core.typing.MomDimsStrict(*args, **kwargs)#

Dimensions containing moment(s)

alias of tuple[Hashable] | tuple[Hashable, Hashable]

cmomy.core.typing.IndexAny = 'pd.Index[Any]'#

Index

cmomy.core.typing.CoordsType(*args, **kwargs)#

Coordinates

alias of Mapping[Any, Any] | None

cmomy.core.typing.ArrayOrderCF(*args, **kwargs)#

Order parameters

alias of Literal[‘C’, ‘F’] | None

cmomy.core.typing.ArrayOrderACF(*args, **kwargs)#

Order parameters

alias of Literal[‘A’, ‘C’, ‘F’] | None

cmomy.core.typing.ArrayOrderKACF(*args, **kwargs)#

Order parameters

alias of Literal[‘K’, ‘A’, ‘C’, ‘F’] | None

cmomy.core.typing.Casting(*args, **kwargs)#

Casting rules

alias of Literal[‘no’, ‘equiv’, ‘safe’, ‘same_kind’, ‘unsafe’]

cmomy.core.typing.MissingCoreDimOptions(*args, **kwargs)#

What to do if missing a core dimensions.

alias of Literal[‘raise’, ‘copy’, ‘drop’]

cmomy.core.typing.SelectMoment(*args, **kwargs)#

Moment names.

alias of Literal[‘weight’, ‘ave’, ‘cov’, ‘var’, ‘xave’, ‘yave’, ‘xvar’, ‘yvar’, ‘all’, ‘xmom_0’, ‘xmom_1’, ‘ymom_0’, ‘ymom_1’]

cmomy.core.typing.ConvertStyle(*args, **kwargs)#

Style to convert to

alias of Literal[‘central’, ‘raw’]