Skip to content

Commit

Permalink
added jd at mag_min for T2TabulatorRiseDecline
Browse files Browse the repository at this point in the history
  • Loading branch information
aotownsend committed Dec 21, 2023
1 parent 2c3e91e commit ffb7d8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ampel/contrib/hu/t2/T2TabulatorRiseDecline.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ def compute_stats(self, flux_table: Table) -> dict[str, Any]:
except TypeError:
self.logger.info("Mag min extraction failed.")

try:
o["jd_min"] = float( flux_table['time'][np.argmax(flux_table['flux'])])
except TypeError:
self.logger.info("JD at mag min extraction failed.")

# Check for non-signficant obs between det and last
ultab = flux_table[band_mask & ~sig_mask]
Expand Down

0 comments on commit ffb7d8d

Please sign in to comment.