Skip to content

Commit

Permalink
Fix #268
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein committed May 1, 2023
1 parent 8a97d90 commit 6731f5e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
14 changes: 14 additions & 0 deletions nuztf/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,20 @@ def absmag_to_mag(absmag):

fig.text(0.77, 0.55, "\n".join(info), va="top", fontsize="medium", alpha=0.5)

# Add annotations

lc_ax1.annotate(
"See On Fritz",
xy=(0.5, 1),
xytext=(0.78, 0.10),
xycoords="figure fraction",
verticalalignment="top",
color="royalblue",
url=f"https://fritz.science/source/{name}",
fontsize=12,
bbox=dict(boxstyle="round", fc="cornflowerblue", ec="royalblue", alpha=0.4),
)

if include_crossmatch:
xmatch_info = get_cross_match_info(alert[0])
if include_cutouts:
Expand Down
8 changes: 6 additions & 2 deletions nuztf/skymap_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ def filter_f_no_prv(self, res: dict, t_max_jd=None) -> bool:
startdate_jd = res["candidate"]["jdstarthist"]
startdate_date = Time(startdate_jd, format="jd").isot
self.logger.debug(
f"{res['objectId']}: Transient is too old (jdstarthist predates event; first detection at {startdate_date})."
f"{res['objectId']}: Transient is too old "
f"(jdstarthist predates event; first detection at {startdate_date})."
)
return False

Expand All @@ -307,7 +308,10 @@ def filter_f_no_prv(self, res: dict, t_max_jd=None) -> bool:
startdate_jd = res["candidate"]["jdstarthist"]
startdate_date = Time(startdate_jd, format="jd").isot
self.logger.debug(
f"{res['objectId']}: Transient is too new (jdstarthist too late after event; first detection at {startdate_date})"
f"{res['objectId']}: Transient is too new "
f"(jdstarthist too late after event; "
f"first detection at {startdate_date}, "
f"filter searches only up to {Time(t_max_jd, format='jd').isot})."
)
return False

Expand Down

0 comments on commit 6731f5e

Please sign in to comment.