|
lsst.meas.base g51c93253c0+db90bbf60d
|
Functions | |
| catchWarnings (_func=None, *, warns=[]) | |
| typeSafePandasAssignment (target, source, columns, default_dtype=np.float64, int_fill_value=0, force_int_to_float=False) | |
| compute_optimized_periodogram_grid (x0, oversampling_factor=5, nyquist_factor=100) | |
Plugins for use in DiaSource summary statistics. Output columns must be as defined in the schema of the Apdb both in name and units.
| lsst.meas.base.diaCalculationPlugins.catchWarnings | ( | _func = None, | |
| * | , | ||
| warns = [] ) |
Decorator for generically catching numpy warnings.
Definition at line 73 of file diaCalculationPlugins.py.
| lsst.meas.base.diaCalculationPlugins.compute_optimized_periodogram_grid | ( | x0, | |
| oversampling_factor = 5, | |||
| nyquist_factor = 100 ) |
Computes an optimized periodogram frequency grid for a given time series.
Parameters
----------
x0 : `array`
The input time axis.
oversampling_factor : `int`, optional
The oversampling factor for frequency grid.
nyquist_factor : `int`, optional
The Nyquist factor for frequency grid.
Returns
-------
frequencies : `array`
The computed optimized periodogram frequency grid.
Definition at line 152 of file diaCalculationPlugins.py.
| lsst.meas.base.diaCalculationPlugins.typeSafePandasAssignment | ( | target, | |
| source, | |||
| columns, | |||
| default_dtype = np.float64, | |||
| int_fill_value = 0, | |||
| force_int_to_float = False ) |
Assign from a source dataframe to a target dataframe in a type safe way.
Parameters
----------
target : `pd.DataFrame`
Target pandas dataframe.
source : `pd.DataFrame` or `pd.Series`
Grouped source dataframe.
columns : `list` [`str`]
List of columns to transfer.
default_dtype : `np.dtype`, optional
Default datatype (if not in target).
int_fill_value : `int`, optional
Fill value for integer columns to avoid pandas insisting
that everything should be float-ified as nans.
force_int_to_float : `bool`, optional
Force integer columns to float columns? Use this option
for backwards compatibility for old pandas misfeatures which
are expected by some downstream processes.
Definition at line 91 of file diaCalculationPlugins.py.