Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodlz committed Aug 29, 2023
1 parent aa57b8b commit 3e15c01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kowalski/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ def compute_features(alert, alert_history, **kwargs):
recent_alert_by_fid[fid] = alert_in_color[0]

# we now have a dict with an alert in each filter
# iterate over the keys and compute the color evolution features
# iterate over the pairs g-r, r-i, i-g and compute the features
for pair in [(1, 2), (2, 3), (3, 1)]:
if set(pair).issubset(set(recent_alert_by_fid.keys())):
key = f"{mapper[pair[0]]}-{mapper[pair[1]]}"
Expand All @@ -1216,6 +1216,7 @@ def compute_features(alert, alert_history, **kwargs):
2,
)

# keep track of the threshold used
features["color_evolution"]["threshold"] = round(
color_evolution_time_threshold, 2
)
Expand Down

0 comments on commit 3e15c01

Please sign in to comment.