lib.survey_selection.binning.InterpBinning¶
- class lib.survey_selection.binning.InterpBinning(xin)¶
Bases:
lib.survey_selection.binning.BaseBinningClass handling model interpolation at the data points.
Initialize
InterpBinning.- Parameters
xin (array) – x-coordinates to evaluate model at (before interpolation).
Methods
Apply transform to input array.
Return shallow copy of
self.deepcopyInstantiate and initalize class with state dictionary.
is_mpi_broadcastis_mpi_gatheredis_mpi_rootis_mpi_scatteredLoad class in numpy binary format from disk.
If different formats are possible, this method should between them based on file name extension.
log_criticallog_debuglog_errorlog_infolog_warningPropose input and output projection names: exactly those of data vector.
Save class to disk.
If different formats are possible, this method should between them based on file name extension.
Set up projection.
Attributes
basisloggerMPI attributes
mpicommmpirootmpistateregularinregularout- compute(array)¶
Apply transform to input array.
- copy()¶
Return shallow copy of
self.
- classmethod from_state(state, mpiroot=0, mpicomm=None)¶
Instantiate and initalize class with state dictionary.
- classmethod load(filename, mpiroot=0, mpicomm=None)¶
Load class in numpy binary format from disk. If the loaded state contains
__class__and that exists incls._registry, return instance ofcls._registry[__class__](instead ofcls).
- load_auto(*args, **kwargs)¶
If different formats are possible, this method should between them based on file name extension.
- property mpiattrs¶
MPI attributes
- propose_out(projsin)¶
Propose input and output projection names: exactly those of data vector.
- save(filename)¶
Save class to disk.
- save_auto(*args, **kwargs)¶
If different formats are possible, this method should between them based on file name extension.
- setup(data_vector, projs=None)¶
Set up projection.
- Parameters
data_vector (DataVector) – Data vector to project onto.
projs (list, ProjectionNameCollection, default=None) – Projection names. If
None, defaults todata_vector.get_projs(), i.e. projections within data view.