coscon.toast_extras module¶
- class coscon.toast_extras.OpCrosstalk(*args: Any, **kwargs: Any)[source]¶
Bases:
OperatorOperator that apply crosstalk matrix to detector ToDs.
- crosstalk_matrices: List[SimpleCrosstalkMatrix]¶
- n_crosstalk_matrices: int¶
- name: str = 'crosstalk'¶
- classmethod read(args: Namespace, name: str = 'crosstalk') OpCrosstalk[source]¶
- class coscon.toast_extras.SimpleCrosstalkMatrix(names: np.ndarray['S'], data: np.ndarray[np.float64])[source]¶
Bases:
objectA thin crosstalk matrix class.
For feature-rich crosstalk matrix class, see coscon.toast_helper.CrosstalkMatrix.
- data: np.ndarray[np.float64]¶
- names: np.ndarray['S']¶
- property names_str: List[str]¶
names in list of str
- coscon.toast_extras.fma(out: ndarray[float64], ws: ndarray[float64], *arrays: ndarray[float64])[source]¶
Simple FMA, compiled to avoid Python memory implications.
- Parameters:
out – must be zero array in the same shape of each array in arrays
cache is False to avoid IO on HPC.
If not compiled, a lot of Python objects will be created, and as the Python garbage collector is inefficient, it would have larger memory footprints.
- coscon.toast_extras.get_world()¶