antares-devkit 0.5.0__py3-none-any.whl → 0.5.1__py3-none-any.whl

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.
@@ -67,7 +67,9 @@ class rubin_NovTest_soraisam(BaseFilter):
67
67
  from astropy.coordinates import SkyCoord
68
68
  import astropy.units as U
69
69
  from itertools import combinations
70
+ import os
70
71
 
72
+ antares_environment = os.getenv("ANTARES_ENVIRONMENT_URL", "")
71
73
 
72
74
  C1 = (locus.alert.properties['lsst_diaSource_reliability'] < 0.9) or (locus.alert.properties['lsst_diaSource_snr'] < 10.0)
73
75
  if C1:
@@ -182,6 +184,6 @@ class rubin_NovTest_soraisam(BaseFilter):
182
184
 
183
185
  locus.tag("SN_candies")
184
186
 
185
- msg = f"Young SN candidate: triggering alert={alert_id} for locus <https://development.antares.noirlab.edu/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}"
186
- self.send_message_to_slack(msg)
187
-
187
+ msg = f"Young 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}"
188
+ if current_mag < 22.5:
189
+ self.send_message_to_slack(msg)
@@ -67,8 +67,9 @@ class young_rubin_transients_soraisam(BaseFilter):
67
67
  from astropy.coordinates import SkyCoord
68
68
  import astropy.units as U
69
69
  from itertools import combinations
70
+ import os
70
71
 
71
-
72
+ antares_environment = os.getenv("ANTARES_ENVIRONMENT_URL", "")
72
73
  C1 = (locus.alert.properties['lsst_diaSource_reliability'] < 0.9) or (locus.alert.properties['lsst_diaSource_snr'] < 10.0)
73
74
  if C1:
74
75
  return
@@ -141,5 +142,6 @@ class young_rubin_transients_soraisam(BaseFilter):
141
142
 
142
143
  locus.tag("young_rubin_transients")
143
144
 
144
- msg = f"Young extragalactic transient: triggering alert={alert_id} for locus <https://development.antares.noirlab.edu/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}"
145
- self.send_message_to_slack(msg)
145
+ 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
+ if current_mag<22.5:
147
+ self.send_message_to_slack(msg)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: antares-devkit
3
- Version: 0.5.0
3
+ Version: 0.5.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>
@@ -1,7 +1,7 @@
1
- antares_devkit-0.5.0.dist-info/METADATA,sha256=z-rl7QYK5-aI2qXPNIDWko5nNniFPoaW5AHW54MHQHw,6725
2
- antares_devkit-0.5.0.dist-info/WHEEL,sha256=Wb0ASbVj8JvWHpOiIpPi7ucfIgJeCi__PzivviEAQFc,90
3
- antares_devkit-0.5.0.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
- antares_devkit-0.5.0.dist-info/licenses/LICENSE.txt,sha256=28klowHDSChBjMTdsDYYEguY0tSBl8-LCb1aFscRw_8,1522
1
+ antares_devkit-0.5.1.dist-info/METADATA,sha256=--zIngQGhiyEDnldN7wEuo0QgydHnR1SvOtJB_sN_fw,6725
2
+ antares_devkit-0.5.1.dist-info/WHEEL,sha256=Wb0ASbVj8JvWHpOiIpPi7ucfIgJeCi__PzivviEAQFc,90
3
+ antares_devkit-0.5.1.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
+ antares_devkit-0.5.1.dist-info/licenses/LICENSE.txt,sha256=28klowHDSChBjMTdsDYYEguY0tSBl8-LCb1aFscRw_8,1522
5
5
  antares_devkit/__init__.py,sha256=wkcoldBUr3l8I3p9q6RYyE1O0vMaWo7zS1_WYyxuHhA,80
6
6
  antares_devkit/filters/bad_detection/__init__.py,sha256=vJHaKZHVgjr2-xvGn2dfQxRnoEKIaUGH1JMSH9mCoHQ,768
7
7
  antares_devkit/filters/bad_seeing/__init__.py,sha256=aZeIoiLkaVe4OFVRW8tqdMF-lfDL3CKbt0nfjs3WJT0,687
@@ -33,7 +33,7 @@ antares_devkit/filters/persistent_dimmers/__init__.py,sha256=UGH9AtWpGSJpVR6JL6u
33
33
  antares_devkit/filters/random_tagger_filter/__init__.py,sha256=B2eJspxpwp3iRIMZ_vpD0_e8JWg5l_y7CPhdTAFYkIE,493
34
34
  antares_devkit/filters/recent_reddening/__init__.py,sha256=5fqthd_saqLLKmt-FB8_sufczuQ1IAsejo7Fhis_Lx8,3184
35
35
  antares_devkit/filters/refitt_newsources_snrcut/__init__.py,sha256=f1wz7lbSf5iGQVveBx-JEYjbGh0dzNVP-BYMcsSsh4Y,1536
36
- antares_devkit/filters/rubin_NovTest_soraisam/__init__.py,sha256=dZHWN2A2j2_mLnTn-GYBi_yzylelBsSGp5VONZ-nP_I,6055
36
+ antares_devkit/filters/rubin_NovTest_soraisam/__init__.py,sha256=TX0zdfnaVwhWCQr_w-RlsunG7Nw8dxv6vqCenWHQIp4,6145
37
37
  antares_devkit/filters/sample_filter/__init__.py,sha256=44bMq3-9hufcSm-Oz-tXpRLegiJjlFjhhkJCLEaX0QA,240
38
38
  antares_devkit/filters/siena_mag_coord_cut/__init__.py,sha256=e-DuypP8_FJenAZVT2YOEPi2-ZO_W5L9XuvtxUoiM08,1825
39
39
  antares_devkit/filters/sso/__init__.py,sha256=zCM_1pcNJm-BVpJ6-pRC-mvz2W1KfVmkp-JmK7I0V-I,8331
@@ -47,7 +47,7 @@ antares_devkit/filters/vpdf/__init__.py,sha256=tQv8gpbKuGRgZDhbsAlCc9JX8tygiK1wu
47
47
  antares_devkit/filters/vpdf/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
48
  antares_devkit/filters/vpdf/data/matheson_percent_grid_v1,sha256=hADpAh6hXh-7aZBt_KzDaIAMUBhBsOyx32HGFSqRLSk,23262120
49
49
  antares_devkit/filters/young_extragalactic_candidate/__init__.py,sha256=N0K91eTfxoGjSmt_8gav-MrtMC6J_8zZ1A5kjh6b3RE,5154
50
- antares_devkit/filters/young_rubin_transients_soraisam/__init__.py,sha256=6N3eFXlK2Lu9fBw9bTIvbpA2TQFw_ceUjL-A5DLrLk4,4921
50
+ antares_devkit/filters/young_rubin_transients_soraisam/__init__.py,sha256=m9PWt7-IRIsQJehaZ1_h-3sz1QtwIHkHEY7J_AkgHrs,5008
51
51
  antares_devkit/models.py,sha256=Ghh6FxJnA8PlbebIwRcj23d5JCUS0YhhlqDTJ48xHj8,23298
52
52
  antares_devkit/utils.py,sha256=-mHqoyccLjSZBldQnaQ3vE0Z3-e-2avXhnaBRvzYEG4,7379
53
53
  test/Dockerfile,sha256=NPbkb105rWXzgGf12GXNd5P6_it28XRSZ0ZleO7eTdc,473
@@ -60,4 +60,4 @@ test/unit/antares_devkit/filters/test_test_dev_lsst.py,sha256=EdgByUTs3zhJcNuPa9
60
60
  test/unit/antares_devkit/filters/test_test_dev_ztf.py,sha256=IBEV5lZ2ml1GFt9-ITew38ipoTiAvljYT_FFqQDWTO4,2069
61
61
  test/unit/antares_devkit/test_models.py,sha256=g0erQz6u2RnNcQurrDizmiQSB2vrU_9J6gvgdmO7Rp0,6604
62
62
  test/unit/test_filters.py,sha256=I-cGvPabN-uWcqHdXJP6u5nR0hi12F7vA_qGu5GiTRA,371
63
- antares_devkit-0.5.0.dist-info/RECORD,,
63
+ antares_devkit-0.5.1.dist-info/RECORD,,