Skip to content

Commit

Permalink
The restrictions of the observation area have been updated (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
Knispel2 committed Mar 13, 2024
1 parent c5f2978 commit 4dfd026
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fink_filters/filter_anomaly_notification/filter.py
Expand Up @@ -64,7 +64,7 @@ def anomaly_notification_(
If this is True, only objects from the area bounded
by the following coordinates are considered:
1) delta <= 20°
2) alpha ∈ (0°, 60°)⋃(340°, 360°)
2) alpha ∈ (160°, 240°)
history_period: int
Time period in days for which the number
of references is calculated
Expand Down Expand Up @@ -127,7 +127,7 @@ def anomaly_notification_(
"""
# Filtering by coordinates
if cut_coords:
df_proc = df_proc.filter('dec <= 20 AND (ra <= 60 OR ra >= 340)')
df_proc = df_proc.filter('dec <= 20 AND (ra >= 160 AND ra <= 240)')
# We need to know the total number of objects per night which satisfy the condition on coordinates
cut_count = df_proc.count()
if cut_count == 0:
Expand Down Expand Up @@ -189,7 +189,7 @@ def anomaly_notification_(
(of the objects in the sky area)
Sky area:
1) delta <= 20°
2) alpha ∈ (0°, 60°)⋃(340°, 360°)
2) alpha ∈ (160°, 240°)
Total number of objects per night in the area: {cut_count}.
'''
if send_to_slack:
Expand Down

0 comments on commit 4dfd026

Please sign in to comment.