RAMjET

ramjet.analysis.results_viewer.results_viewer

Code to lightcurves predicted by Ramjet in 2 minute data.

Module Contents

Classes

Target
ResultsViewer
tess_data_interface
tess_toi_data_interface
class Target(lightcurve_path)[source]
__init__(self, lightcurve_path)[source]

Initialize self. See help(type(self)) for accurate signature.

load_lightcurve(self)[source]
check_for_known_exofop_dispositions(self)[source]
class ResultsViewer(bokeh_document, results_path, starting_index: int = 0)[source]
__init__(self, bokeh_document, results_path, starting_index: int = 0)[source]

Initialize self. See help(type(self)) for accurate signature.

classmethod attach_document(cls, bokeh_document, results_path, starting_index: int = 0)[source]
create_mcmc_fit_figures(self, run_fitting_button)[source]
update_parameters_table(self, trace_summary)[source]
create_folded_figured_based_on_clicks_in_unfolded_figure(self, unfolded_figure, data_source)[source]
static fold_times(times: np.ndarray, epoch: float, period: float)[source]

Folds an array of times based on an epoch and period.

Parameters:
  • times – The times to fold.
  • epoch – The epoch of the fold.
  • period – The period of the fold.
Returns:

The folded times.

static round_series_to_significant_figures(series: pd.Series, significant_figures: int)[source]

Rounds a series to a given number of significant figures.

Parameters:
  • series – The series to round.
  • significant_figures – The number of signficant figures to round to.
Returns:

The rounded series.

static calculate_epoch_and_period_from_approximate_event_times(event_times: List[float])[source]

Calculates the period and epoch of a signal given selected event times. The epoch is set to the first event chronologically.

Parameters:event_times – The times of the events.
Returns:The epoch and period.
create_unfolded_lightcurve_figure(self, data_source)[source]
load_surrounding_lightcurves(self)[source]
display_current_target(self)[source]
static create_flux_comparison_lightcurve_figure()[source]
static plot_folding_colored_lightcurve_source(figure: Figure, data_source: ColumnDataSource, time_column_name: str = 'Time (BTJD)', flux_column_name: str = 'Normalized PDCSAP flux', color_value_column_name: str = 'Time (days)')[source]

Plots the lightcurve data source on the passed figure.

Parameters:
  • figure – The figure to plot to.
  • data_source – The data source containing the lightcurve data.
  • time_column_name – The name of the time column whose values will be used on the x axis.
  • flux_column_name – The name of the flux column whose values will be used on the y axis.
  • color_value_column_name – The name of the column whose values will be used to determine data point color.
create_target_switching_buttons(self)[source]
create_add_to_negatives_button(self)[source]