Skip to content
Merged
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
2 changes: 1 addition & 1 deletion examples/reflected_region.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ datasets:
background:
method: reflected
fit:
model: pl
model: ecpl
index: 2.5
reference_energy: 1 TeV

Expand Down
1 change: 1 addition & 0 deletions v2dl5/light_curves/binary_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def plot_flux_vs_time(
markersize=plotting_utilities.get_marker_size() * 0.5,
)

ax.set_ylim([self.config[0].get("flux_axis_min"), self.config[0].get("flux_axis_max")])
ax.axhline(0, color="lightgray", linestyle="--")
plt.xlabel(self._get_time_axis_label(time_axis), fontsize=fontsize)
if mjd_min is not None and mjd_max is not None:
Expand Down
4 changes: 4 additions & 0 deletions v2dl5/light_curves/data_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ def _read_fluxes_from_ecsv_file(
table = Table.read(file_name)
f = {}

if "time" not in table.colnames and "MJD" in table.colnames:
table.rename_column("MJD", "time")
time_min_max = False

if not time_min_max:
table["time_min"] = table["time"].data
table["time_max"] = table["time"].data + 0.1
Expand Down