autowisp.diagnostics.get_from_lc module

Class Inheritance Diagram

Inheritance diagram of ArgumentParser, DefaultsFormatter, LightCurveEvaluator, LightCurveFile, RoadRunnerModel, count, product

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.main()[source]

Avoid polluting global scope.

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_substitutions with 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_best to select the combination for which minimize evaluates to the smallest value.

Returns:

the smallest value of the minimize expression found.

autowisp.diagnostics.get_from_lc.parse_command_line()[source]

Return the command line configuration.

autowisp.diagnostics.get_from_lc.set_substitutions(lc_eval, configuration, lightcurve, photometry_mode, **optimize_kwargs)[source]

Set the LC path substitutions lc_eval should use.

autowisp.diagnostics.get_from_lc.transit_model(times, **params)[source]

Calculate the magnitude change of exoplanet with given parameters.