Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.
Merged

Dev #60

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
259 changes: 148 additions & 111 deletions docs/tutorials/timing_methods.ipynb

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions opticam/analysis/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def plot_light_curves(
ax.minorticks_on()
ax.tick_params(which='both', direction='in', top=True, right=True)

fig.savefig(f'{self.out_directory}/plots/{self.prefix}_{self.phot_label}_light_curves.png')
fig.savefig(f'{self.out_directory}/plots/{self.prefix}_{self.phot_label}_light_curves.pdf')

if self.show_plots:
plt.show()
Expand Down Expand Up @@ -308,7 +308,7 @@ def phase_fold_light_curves(
axes[-1].set_xlabel('Phase')
axes[len(self.light_curves) // 2].set_ylabel('Normalized Flux')

fig.savefig(f'{self.out_directory}/plots/{self.prefix}_{self.phot_label}_P={save_period:.4f}s_phase_fold.png')
fig.savefig(f'{self.out_directory}/plots/{self.prefix}_{self.phot_label}_P={save_period:.4f}s_phase_fold.pdf')
plt.show()

return results
Expand Down Expand Up @@ -459,7 +459,7 @@ def phase_bin_light_curves(
ax.minorticks_on()
ax.tick_params(which='both', direction='in', top=True, right=True)

fig.savefig(f'{self.out_directory}/plots/{self.prefix}_{self.phot_label}_P={save_period:.4f}s_phase_bin.png')
fig.savefig(f'{self.out_directory}/plots/{self.prefix}_{self.phot_label}_P={save_period:.4f}s_phase_bin.pdf')
plt.show()

return results
Expand Down Expand Up @@ -507,7 +507,7 @@ def compute_power_spectra(

if self.show_plots and len(results) > 0:
fig = plot(results, scale)
fig.savefig(f'{self.out_directory}/plots/{self.prefix}_{self.phot_label}_periodograms.png')
fig.savefig(f'{self.out_directory}/plots/{self.prefix}_{self.phot_label}_periodograms.pdf')
plt.show()

return results
Expand Down Expand Up @@ -568,7 +568,7 @@ def compute_averaged_power_spectra(

if self.show_plots:
fig = plot(results, scale)
fig.savefig(f'{self.out_directory}/plots/{self.prefix}_{self.phot_label}_averaged_power_spectra.png')
fig.savefig(f'{self.out_directory}/plots/{self.prefix}_{self.phot_label}_averaged_power_spectra.pdf')
plt.show()

return results
Expand Down Expand Up @@ -613,7 +613,7 @@ def compute_lomb_scargle_periodograms(

if self.show_plots:
fig = plot(results, scale)
fig.savefig(f'{self.out_directory}/plots/{self.prefix}_{self.phot_label}_L-S_periodograms.png')
fig.savefig(f'{self.out_directory}/plots/{self.prefix}_{self.phot_label}_L-S_periodograms.pdf')
plt.show()

return results
Expand Down Expand Up @@ -676,7 +676,7 @@ def compute_cross_correlations(

if self.show_plots:
fig = plot(results)
fig.savefig(f'{self.out_directory}/plots/{self.prefix}_{self.phot_label}_cross_correlations.png')
fig.savefig(f'{self.out_directory}/plots/{self.prefix}_{self.phot_label}_cross_correlations.pdf')
plt.show()

return results
Expand Down