autowisp.diagnostics.get_from_lc module
Class Inheritance Diagram

Utilities for plotting individual lightcurves.
- autowisp.diagnostics.get_from_lc.calculate_combined(plot_data, match_id_key, aggregation_function)[source]
Create a specified plot of the given lightcurve.
- autowisp.diagnostics.get_from_lc.evaluate_expressions(expressions, lc_eval, photometry_mode)[source]
Evaluate the required expressions for the current lightcurve.
- autowisp.diagnostics.get_from_lc.evaluate_model(model, lc_eval, expression_params, shift_to=None)[source]
Return the model evaluated for the given lightcurve.
- autowisp.diagnostics.get_from_lc.format_lc_quantities()[source]
Return a dict of available lightcurve quantities with discriptions.
- autowisp.diagnostics.get_from_lc.get_plot_data(lc_fname, expressions, configuration, model=None)[source]
Read relevant data from the lightcurve.
- autowisp.diagnostics.get_from_lc.get_sphotref_result(*, single_photref_fname, lightcurve, expressions, configuration, model, lc_eval)[source]
Get the plot data for a single photometric reference.
- autowisp.diagnostics.get_from_lc.optimize_substitutions(lc_eval, *, find_best, minimize, y_expression, model, expression_params)[source]
Find the values of LC substitution params that minimize an expression.
Updates
lc_evals.lc_substitutionswith the best values found.- Parameters:
lc_eval (LightCurveEvaluator) – Allows evaluating the expression to minimize.
find_best (iterable) – Iterable of 2-tuples with the first entry in each tuple being a substitution parameters that need to be optimized and the second entry containing an iterable of all possible values for that parameter. All possible combinations are tried.
minimize (str) – Expression that is evaluated for each combination of values from
find_bestto select the combination for whichminimizeevaluates to the smallest value.
- Returns:
the smallest value of the
minimizeexpression found.
- autowisp.diagnostics.get_from_lc.parse_command_line()[source]
Return the command line configuration.