def plot_odd_even(self, flat, period=None, epoch=None, duration=None, ylim=None): """ """ period = self.toi_period if period is None else period epoch = self.toi_epoch - TESS_TIME_OFFSET if epoch is None else epoch if (period is None) or (epoch is None): if self.tls_results is None: print("Running TLS") _ = self.run_tls(flat, plot=False) period = self.tls_results.period epoch = self.tls_results.T0 ylim = self.tls_results.depth if ylim is None else ylim if ylim is None: ylim = 1 - self.toi_depth fig = plot_odd_even(flat, period=period, epoch=epoch, duration=duration, yline=ylim) fig.suptitle(f"{self.target_name} (sector {flat.sector})") return fig
def plot_odd_even(self, flat, period, epoch, ylim=None): """ """ if (period is None) or (epoch is None): if self.tls_results is None: print("Running TLS") _ = self.run_tls(flat, plot=False) period = self.tls_results.period epoch = self.tls_results.T0 ylim = self.tls_results.depth if ylim is None else ylim if ylim is None: ylim = 1 - self.toi_depth fig = plot_odd_even(flat, period=period, epoch=epoch, yline=ylim) fig.suptitle(f"{self.target_name} (campaign {flat.campaign})") return fig