antares-devkit 0.6.0__tar.gz → 0.6.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/PKG-INFO +1 -1
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/rubin_NovTest_soraisam/__init__.py +15 -6
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/young_rubin_transients_soraisam/__init__.py +28 -5
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/pyproject.toml +1 -1
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/LICENSE.txt +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/README.md +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/bad_detection/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/bad_seeing/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/crash_filter/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/desi_target/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/dwarf_nova_outburst/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/ecl_transient_1/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/ecl_transient_2/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/extragalactic/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/highamp/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/highfluxchange/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/highsnr/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/if_anomaly_detection/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/if_anomaly_detection/data/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/if_anomaly_detection/data/paleo2_106IFmodel_472727objs_nest=1000_cont=0.001_transf.pkl +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/imbh/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/inm31/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/laiss_rfc_ad_filter/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/laiss_rfc_ad_filter/data/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/laiss_rfc_ad_filter/data/cls=binary_n_estimators=100_max_depth=35_rs=11_max_feats=35_cw=balanced.pkl +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/lsst_ddf/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/malanchev_anomaly_transient_dmdt/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/malanchev_anomaly_transient_dmdt/data/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/malanchev_anomaly_transient_dmdt/data/malanchev_ssiforest_v1.pickle +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/malanchev_features_v1/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/novtest/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/nuclear_transient/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/nuttela_tao/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/persistent_dimmers/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/random_tagger_filter/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/recent_reddening/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/refitt_newsources_snrcut/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/sample_filter/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/siena_mag_coord_cut/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/sso/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/sub_lum/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/superphot_plus_v1/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/superphot_plus_ztf_v3/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/test_dev_all/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/test_dev_lsst/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/test_dev_ztf/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/vpdf/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/vpdf/data/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/vpdf/data/matheson_percent_grid_v1 +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/young_extragalactic_candidate/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/models.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/utils.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/test/Dockerfile +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/test/__init__.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/test/conftest.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/test/data/large_locus.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/test/data/small_locus.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/test/unit/antares_devkit/filters/test_test_dev_all.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/test/unit/antares_devkit/filters/test_test_dev_lsst.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/test/unit/antares_devkit/filters/test_test_dev_ztf.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/test/unit/antares_devkit/test_models.py +0 -0
- {antares_devkit-0.6.0 → antares_devkit-0.6.1}/test/unit/test_filters.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: antares-devkit
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.1
|
|
4
4
|
Summary: Provides tools and utility methods to write and debug ANTARES filters with Python.
|
|
5
5
|
Keywords: antares,devkit,filter development
|
|
6
6
|
Author-Email: NSF NOIRLab ANTARES Team <antares@noirlab.edu>
|
|
@@ -70,8 +70,17 @@ class rubin_NovTest_soraisam(BaseFilter):
|
|
|
70
70
|
import os
|
|
71
71
|
|
|
72
72
|
antares_environment = os.getenv("ANTARES_ENVIRONMENT_URL", "")
|
|
73
|
+
|
|
74
|
+
## check locus aggregation
|
|
75
|
+
C0 = False
|
|
76
|
+
if 'lsst' in locus.properties['survey'].keys():
|
|
77
|
+
if len(locus.properties['survey']['lsst']['dia_object_id']) > 1:
|
|
78
|
+
C0 = True
|
|
79
|
+
if C0:
|
|
80
|
+
return
|
|
81
|
+
|
|
73
82
|
|
|
74
|
-
C1 = (locus.alert.properties['lsst_diaSource_reliability'] < 0.9)
|
|
83
|
+
C1 = (locus.alert.properties['lsst_diaSource_reliability'] < 0.9)
|
|
75
84
|
if C1:
|
|
76
85
|
return
|
|
77
86
|
|
|
@@ -95,8 +104,8 @@ class rubin_NovTest_soraisam(BaseFilter):
|
|
|
95
104
|
TS_all = locus.timeseries('all')
|
|
96
105
|
TS_lsst = locus.timeseries('lsst')
|
|
97
106
|
|
|
98
|
-
## want more than two measurements across all filters
|
|
99
|
-
C4 = (len(
|
|
107
|
+
## want more than two measurements across all filters
|
|
108
|
+
C4 = (len(TS_lsst) > 2)
|
|
100
109
|
if not C4:
|
|
101
110
|
return
|
|
102
111
|
|
|
@@ -184,6 +193,6 @@ class rubin_NovTest_soraisam(BaseFilter):
|
|
|
184
193
|
|
|
185
194
|
locus.tag("SN_candies")
|
|
186
195
|
|
|
187
|
-
msg = f"
|
|
188
|
-
|
|
189
|
-
|
|
196
|
+
msg = f"SN candidate: triggering alert={alert_id} for locus <{antares_environment}/loci/{ant_id}|{ant_id}> {known_to_tns}, RA={ra_str} DEC={dec_str}, {current_pb}_mag={current_mag:.2f}, #dets in LSST={len(TS_lsst)}, UTC={current.iso}"
|
|
197
|
+
|
|
198
|
+
self.send_message_to_slack(msg)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
##
|
|
1
|
+
## v2
|
|
2
2
|
from antares_devkit.models import BaseFilter
|
|
3
3
|
|
|
4
4
|
|
|
@@ -70,7 +70,17 @@ class young_rubin_transients_soraisam(BaseFilter):
|
|
|
70
70
|
import os
|
|
71
71
|
|
|
72
72
|
antares_environment = os.getenv("ANTARES_ENVIRONMENT_URL", "")
|
|
73
|
-
|
|
73
|
+
|
|
74
|
+
## check locus aggregation
|
|
75
|
+
C0 = False
|
|
76
|
+
if 'lsst' in locus.properties['survey'].keys():
|
|
77
|
+
if len(locus.properties['survey']['lsst']['dia_object_id']) > 1:
|
|
78
|
+
C0 = True
|
|
79
|
+
if C0:
|
|
80
|
+
return
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
C1 = (locus.alert.properties['lsst_diaSource_reliability'] < 0.9)
|
|
74
84
|
if C1:
|
|
75
85
|
return
|
|
76
86
|
|
|
@@ -106,7 +116,7 @@ class young_rubin_transients_soraisam(BaseFilter):
|
|
|
106
116
|
TS_all = locus.timeseries('all')
|
|
107
117
|
TS_lsst = locus.timeseries('lsst')
|
|
108
118
|
|
|
109
|
-
C4 = (len(
|
|
119
|
+
C4 = (len(TS_lsst) > 2) and (max(TS_lsst["ant_mjd"].data) - min(TS_lsst["ant_mjd"].data) < 45.0)
|
|
110
120
|
if not C4:
|
|
111
121
|
return
|
|
112
122
|
|
|
@@ -126,6 +136,20 @@ class young_rubin_transients_soraisam(BaseFilter):
|
|
|
126
136
|
C7 = np.all(TS_lsst['lsst_diaSource_isNegative'].data==False)
|
|
127
137
|
if not C7:
|
|
128
138
|
return
|
|
139
|
+
|
|
140
|
+
## check for MO, if all detections within 2 hr
|
|
141
|
+
if max(TS_lsst["ant_mjd"].data) - min(TS_lsst["ant_mjd"].data) < 2.0/24.0:
|
|
142
|
+
C8 = False
|
|
143
|
+
for PB in np.unique(TS_lsst["ant_passband"].data):
|
|
144
|
+
y = TS_lsst["ant_mag"].data[TS_lsst["ant_passband"].data==PB]
|
|
145
|
+
yerr = TS_lsst["ant_magerr"].data[TS_lsst["ant_passband"].data==PB]
|
|
146
|
+
if np.std(y) > 0.5:
|
|
147
|
+
C8 = True
|
|
148
|
+
break
|
|
149
|
+
else:
|
|
150
|
+
C8 = True
|
|
151
|
+
if not C8:
|
|
152
|
+
return
|
|
129
153
|
|
|
130
154
|
|
|
131
155
|
ant_id = locus.locus_id
|
|
@@ -143,5 +167,4 @@ class young_rubin_transients_soraisam(BaseFilter):
|
|
|
143
167
|
locus.tag("young_rubin_transients")
|
|
144
168
|
|
|
145
169
|
msg = f"Young extragalactic transient: triggering alert={alert_id} for locus <{antares_environment}/loci/{ant_id}|{ant_id}> {known_to_tns}, RA={ra_str} DEC={dec_str}, {current_pb}_mag={current_mag:.2f}, #dets in LSST={len(TS_lsst)}, UTC={current.iso}"
|
|
146
|
-
|
|
147
|
-
self.send_message_to_slack(msg)
|
|
170
|
+
self.send_message_to_slack(msg)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/bad_detection/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/crash_filter/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/desi_target/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/dwarf_nova_outburst/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/ecl_transient_1/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/ecl_transient_2/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/extragalactic/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/highfluxchange/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/laiss_rfc_ad_filter/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/nuclear_transient/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/nuttela_tao/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/persistent_dimmers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/recent_reddening/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/sample_filter/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/siena_mag_coord_cut/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/superphot_plus_v1/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/test_dev_all/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/test_dev_lsst/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/antares_devkit/filters/test_dev_ztf/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/test/unit/antares_devkit/filters/test_test_dev_all.py
RENAMED
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/test/unit/antares_devkit/filters/test_test_dev_lsst.py
RENAMED
|
File without changes
|
{antares_devkit-0.6.0 → antares_devkit-0.6.1}/test/unit/antares_devkit/filters/test_test_dev_ztf.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|