antares-devkit 0.5.1__tar.gz → 0.6.0__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.5.1 → antares_devkit-0.6.0}/PKG-INFO +1 -1
- antares_devkit-0.6.0/antares_devkit/filters/lsst_ddf/__init__.py +43 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/utils.py +1 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/pyproject.toml +1 -1
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/LICENSE.txt +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/README.md +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/bad_detection/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/bad_seeing/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/crash_filter/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/desi_target/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/dwarf_nova_outburst/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/ecl_transient_1/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/ecl_transient_2/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/extragalactic/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/highamp/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/highfluxchange/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/highsnr/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/if_anomaly_detection/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/if_anomaly_detection/data/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/if_anomaly_detection/data/paleo2_106IFmodel_472727objs_nest=1000_cont=0.001_transf.pkl +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/imbh/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/inm31/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/laiss_rfc_ad_filter/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/laiss_rfc_ad_filter/data/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/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.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/malanchev_anomaly_transient_dmdt/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/malanchev_anomaly_transient_dmdt/data/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/malanchev_anomaly_transient_dmdt/data/malanchev_ssiforest_v1.pickle +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/malanchev_features_v1/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/novtest/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/nuclear_transient/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/nuttela_tao/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/persistent_dimmers/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/random_tagger_filter/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/recent_reddening/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/refitt_newsources_snrcut/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/rubin_NovTest_soraisam/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/sample_filter/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/siena_mag_coord_cut/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/sso/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/sub_lum/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/superphot_plus_v1/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/superphot_plus_ztf_v3/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/test_dev_all/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/test_dev_lsst/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/test_dev_ztf/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/vpdf/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/vpdf/data/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/vpdf/data/matheson_percent_grid_v1 +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/young_extragalactic_candidate/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/young_rubin_transients_soraisam/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/models.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/test/Dockerfile +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/test/__init__.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/test/conftest.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/test/data/large_locus.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/test/data/small_locus.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/test/unit/antares_devkit/filters/test_test_dev_all.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/test/unit/antares_devkit/filters/test_test_dev_lsst.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/test/unit/antares_devkit/filters/test_test_dev_ztf.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/test/unit/antares_devkit/test_models.py +0 -0
- {antares_devkit-0.5.1 → antares_devkit-0.6.0}/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.
|
|
3
|
+
Version: 0.6.0
|
|
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>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Description
|
|
2
|
+
This filter finds locus located within a radius of 1.75 deg from the center of the LSST Deep Drilling fields.
|
|
3
|
+
"""
|
|
4
|
+
from antares_devkit.models import BaseFilter
|
|
5
|
+
|
|
6
|
+
class In_LSSTDDF(BaseFilter):
|
|
7
|
+
NAME = 'in_LSSTDDF' #for this default filter, name is same as its tag
|
|
8
|
+
|
|
9
|
+
SLACK_CHANNEL = "#filter-in-lsst-ddf"
|
|
10
|
+
|
|
11
|
+
## bare absolute minimum alert properties proving it's good to go
|
|
12
|
+
REQUIRED_ALERT_PROPERTIES = [
|
|
13
|
+
'ant_ra',
|
|
14
|
+
'ant_dec',
|
|
15
|
+
'ant_survey'
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
OUTPUT_TAGS = [
|
|
19
|
+
{
|
|
20
|
+
'name': 'in_LSSTDDF',
|
|
21
|
+
'description': 'Locus is along the line of sight to the LSST Deep Drilling Fields',
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
def _run(self, locus):
|
|
26
|
+
import numpy as np
|
|
27
|
+
from astropy import units as u
|
|
28
|
+
from astropy.coordinates import SkyCoord
|
|
29
|
+
|
|
30
|
+
if locus.alert.properties['ant_survey'] == 2: #be sure we don't work with upper limits
|
|
31
|
+
return
|
|
32
|
+
|
|
33
|
+
ra = locus.alert.properties['ant_ra']
|
|
34
|
+
dec = locus.alert.properties['ant_dec']
|
|
35
|
+
#ELAISS1, XMM_LSS, ECDFS, COSMOS, EDFS_a, EDFS_b
|
|
36
|
+
#From https://survey-strategy.lsst.io/baseline/ddf.html
|
|
37
|
+
LSST_DDF_ra = np.array([9.45 , 35.57, 52.98, 150.11, 58.9, 63.6])
|
|
38
|
+
LSST_DDF_dec = np.array([-44.02,-4.82, -28.12, 2.23, -49.32,-47.6])
|
|
39
|
+
field_centers = SkyCoord(ra=LSST_DDF_ra*u.deg, dec=LSST_DDF_dec*u.deg)
|
|
40
|
+
c = SkyCoord(ra*u.deg, dec*u.deg, frame='icrs')
|
|
41
|
+
sep = c.separation(field_centers)
|
|
42
|
+
if (sep.deg < 1.75).any(): #LSST FOV = 3.5 deg diameter
|
|
43
|
+
locus.tag('in_LSSTDDF')
|
|
@@ -23,6 +23,7 @@ def get_filters_path():
|
|
|
23
23
|
"HighSNR": "antares_devkit.filters.highsnr",
|
|
24
24
|
"IF_anomaly_detection": "antares_devkit.filters.if_anomaly_detection", # ["numpy", "pandas", "sklearn", "astropy"]
|
|
25
25
|
"IMBH": "antares_devkit.filters.imbh",
|
|
26
|
+
"In_LSSTDDF": "antares_devkit.filters.lsst_ddf", #["astropy", "numpy"]
|
|
26
27
|
"InM31": "antares_devkit.filters.inm31",
|
|
27
28
|
"LAISS_RFC_AD_filter": "antares_devkit.filters.laiss_rfc_ad_filter", # ["astropy", "timeout_decorator", "alerce", "numpy", "pandas", "matplotlib", "astro_ghost", "sklearn", "scipy"]
|
|
28
29
|
"AnomalyTransientDmDt": "antares_devkit.filters.malanchev_anomaly_transient_dmdt", # ["numpy", "astropy", "light_curve"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/bad_detection/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/crash_filter/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/desi_target/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/dwarf_nova_outburst/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/ecl_transient_1/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/ecl_transient_2/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/extragalactic/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/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.5.1 → antares_devkit-0.6.0}/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
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/nuclear_transient/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/nuttela_tao/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/persistent_dimmers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/recent_reddening/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/sample_filter/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/siena_mag_coord_cut/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/superphot_plus_v1/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/test_dev_all/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/antares_devkit/filters/test_dev_lsst/__init__.py
RENAMED
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/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.5.1 → antares_devkit-0.6.0}/test/unit/antares_devkit/filters/test_test_dev_all.py
RENAMED
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/test/unit/antares_devkit/filters/test_test_dev_lsst.py
RENAMED
|
File without changes
|
{antares_devkit-0.5.1 → antares_devkit-0.6.0}/test/unit/antares_devkit/filters/test_test_dev_ztf.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|