Skip to content

Commit 4a55ee4

Browse files
authored
Merge pull request #55 from VERITAS-Observatory/lc-comparison
Minimal updates for lc plotting
2 parents de32507 + 0754621 commit 4a55ee4

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

examples/reflected_region.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ datasets:
3434
background:
3535
method: reflected
3636
fit:
37-
model: pl
37+
model: ecpl
3838
index: 2.5
3939
reference_energy: 1 TeV
4040

v2dl5/light_curves/binary_plotting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def plot_flux_vs_time(
131131
markersize=plotting_utilities.get_marker_size() * 0.5,
132132
)
133133

134+
ax.set_ylim([self.config[0].get("flux_axis_min"), self.config[0].get("flux_axis_max")])
134135
ax.axhline(0, color="lightgray", linestyle="--")
135136
plt.xlabel(self._get_time_axis_label(time_axis), fontsize=fontsize)
136137
if mjd_min is not None and mjd_max is not None:

v2dl5/light_curves/data_reader.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ def _read_fluxes_from_ecsv_file(
192192
table = Table.read(file_name)
193193
f = {}
194194

195+
if "time" not in table.colnames and "MJD" in table.colnames:
196+
table.rename_column("MJD", "time")
197+
time_min_max = False
198+
195199
if not time_min_max:
196200
table["time_min"] = table["time"].data
197201
table["time_max"] = table["time"].data + 0.1

0 commit comments

Comments
 (0)