Typing aliases (thermoextrap.core.typing)#
Classes:
Generic covariant type variable. |
|
|
Callable for identity transform. |
|
Protocol for thing that container that supports __getitem__ |
|
Protocol for Data |
|
Data protocol for PerturbModel |
|
Protocol for single model. |
|
Protocol for single model with derivs |
Generic type variable for |
|
Generic type variable for |
|
Generic type variable for |
|
Generic type variable for |
|
Generic covariant type variable for |
|
|
Protocol for State collection |
- class thermoextrap.core.typing.DataT#
Type variable for
DataArrayorDataset.alias of TypeVar(‘DataT’, ~xarray.core.dataarray.DataArray, ~xarray.core.dataset.Dataset)
- class thermoextrap.core.typing.T_co#
Generic covariant type variable.
alias of TypeVar(‘T_co’, covariant=True)
- class thermoextrap.core.typing.SupportsIdentityTransform(*args, **kwargs)[source]#
Bases:
ProtocolCallable for identity transform.
Methods:
__call__(x, y, y_var)Call self as a function.
- class thermoextrap.core.typing.SupportsGetItem(*args, **kwargs)[source]#
-
Protocol for thing that container that supports __getitem__
- class thermoextrap.core.typing.SupportsDataXU(*args, **kwargs)[source]#
-
Data protocol for PerturbModel
- class thermoextrap.core.typing.SupportsModelDerivs(*args, **kwargs)[source]#
Bases:
SupportsModel[T_co],Protocol[T_co]Protocol for single model with derivs
- class thermoextrap.core.typing.SupportsModelDataT#
Generic type variable for
SupportsModelalias of TypeVar(‘SupportsModelDataT’, bound=
SupportsModel[DataArray|Dataset])
- class thermoextrap.core.typing.SupportsModelDataT_co#
Generic type variable for
SupportsModelalias of TypeVar(‘SupportsModelDataT_co’, bound=
SupportsModel[DataArray|Dataset], covariant=True)
- class thermoextrap.core.typing.SupportsModelDerivsDataT#
Generic type variable for
SupportsModelDerivsalias of TypeVar(‘SupportsModelDerivsDataT’, bound=
SupportsModelDerivs[DataArray|Dataset])
- class thermoextrap.core.typing.SupportsModelDerivsDataArrayT#
Generic type variable for
SupportsModelDerivswith DataArrayalias of TypeVar(‘SupportsModelDerivsDataArrayT’, bound=
SupportsModelDerivs[DataArray])
- class thermoextrap.core.typing.SupportsModelT_co#
Generic covariant type variable for
SupportsModelalias of TypeVar(‘SupportsModelT_co’, bound=
SupportsModel[Any], covariant=True)
- class thermoextrap.core.typing.SupportsStateCollection(states, *, kws=None)[source]#
Bases:
Protocol[T_co,SupportsModelT_co]Protocol for State collection
Methods:
resample(sampler, **kws)Resample underlying models.
- resample(sampler, **kws)[source]#
Resample underlying models.
If pass in a single sampler, use it for all states. For example, to resample all states with some
nrep, use.resample(sampler={"nrep": nrep}). Note that the if you pass a single mapping, the mapping will be passed to each stateresamplemethod, which will in turn create unique sample for each state. To specify a different sampler for each state, pass in a sequence of sampler.