lib.survey_selection.base.ProjectionConversion

class lib.survey_selection.base.ProjectionConversion(x, projsin, projsout=None)

Bases: lib.survey_selection.base.BaseRegularMatrix

Class that handles conversion between different projection bases.

projmatrix

Array of shape (len(self.projsout),len(self.projsin)) to convert input array from one basis to another (e.g. multipoles to wedges).

Type

array

Initialize ProjectionConversion.

Parameters

Methods

compute

Apply transform to input array.

copy

Return shallow copy of self.

deepcopy

from_state

Instantiate and initalize class with state dictionary.

is_mpi_broadcast

is_mpi_gathered

is_mpi_root

is_mpi_scattered

load

Load class in numpy binary format from disk.

load_auto

If different formats are possible, this method should between them based on file name extension.

log_critical

log_debug

log_error

log_info

log_warning

propose_out

Propose output projection names given proposed input projection names projsin.

save

Save class to disk.

save_auto

If different formats are possible, this method should between them based on file name extension.

Attributes

basis

logger

matrix

Return 2D array of shape (len(self.projsout)*len(self.x),len(self.projsin)*len(self.x)) corresponding to projmatrix.

mpiattrs

MPI attributes

mpicomm

mpiroot

mpistate

regularin

regularout

xin

Input x-coordinates.

xout

Output x-coordinates.

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 in cls._registry, return instance of cls._registry[__class__] (instead of cls).

load_auto(*args, **kwargs)

If different formats are possible, this method should between them based on file name extension.

property matrix

Return 2D array of shape (len(self.projsout)*len(self.x),len(self.projsin)*len(self.x)) corresponding to projmatrix.

property mpiattrs

MPI attributes

classmethod propose_out(projsin, baseout)

Propose output projection names given proposed input projection names projsin.

Parameters
Returns

toret – Proposed projection names.

Return type

ProjectionNameCollection

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.

property xin

Input x-coordinates.

property xout

Output x-coordinates.