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]¶
-
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.
-
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.
-
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.
-