autowisp.diagnostics.detrending module

Class Inheritance Diagram

Inheritance diagram of Evaluator, MasterFile, MasterType

Functions for extracting diagnostics for the detrending steps.

autowisp.diagnostics.detrending.detect_magfit_stat_columns(stat, num_stat_columns, skip_first_stat=False)[source]

Automatically detect the relevant columns in the magfit statistics file.

Parameters:

stat (pandas.DataFrame) – The statistics .

Returns:

list:

The indices of the columns (starting from zero) containing the number of unrejected frames for each extracted photometry.

list:

The indices of the columns (starting from zero) containing the scatter (e.g. median deviation around the median for magfit).

list:

The indices of the columns (starting from zero) containing the median of the formal magnitude error, or None if that is not tracked.

Return type:

tuple(list, list)

autowisp.diagnostics.detrending.find_magfit_stat_catalog(master_id)[source]

Return the statistics and catalog generated during given magfit step.

autowisp.diagnostics.detrending.get_detrending_performance_data(catalog_fname, stat_fname, detrending_mode, *, min_unrejected_fraction, magnitude_expression, skip_first_stat)[source]

Return all data required for magnitude fitting performance plots.

autowisp.diagnostics.detrending.read_stat_data(catalog_fname, stat_fname)[source]

Return the performance statistics and catalog for a pipeline step.