Skip to main content

Astronomy units for the Ampel system to analyze nuclear events like TDEs

Project description

Ampel-nuclear

Central repository to host AMPEL code to search for and analyze nuclear transients. At the moment, this is exclusively code from the ZTFbh science working group.

Installation

Prerequisites

You need to export environment variables for the AMPEL ZTF archive (tokens are available here), for Fritz, and for the dropbox API (ask Sjoert).

Furthermore, you need a running instance of MongoDB.

Setup

Create a fresh Python 3.10 conda env

conda create -n tde_filter_upgrade python=3.10
conda activate tde_filter_upgrade

Install is done via poetry:

pip install poetry 
git clone https://github.com/AmpelProject/ampel-nuclear
cd Ampel-nuclear
poetry install

Now we have to build the ampel config. Issue

ampel config build -out ampel_conf.yaml

Note: this will throw some import errors, but you can ignore these because those packages are not needed locally.

Now you need to export the following tokens

export AMPEL_ARCHIVE_TOKEN='' 
export DROPBOX_TOKEN=''
export FRITZ_TOKEN=''

Test

To run the test, start your local MongoDB. And then issue

./run_tde_scan.py -i

The -i initiates (and saves) a new archive API stream token. To change the date, use -d YYYY-MM-DD for a certain day. The script will request alerts for the 24 hours after this date.

Note: When requesting a full day with -d from the archive, the first run will probably fail, as the archive database has not fully ramped up yet (URL is locked). In this case, just rerun ./run_tde_scan.py -d YYYY-MM-DD (without i to prevent requesting a new stream token and overwriting the current one) until the archive starts serving alerts (you will see them getting ingested).

To check the output, go to the temp directory that gets created when script is run without -p (push to dropbox).

To see all available commands of the test script, run ./run_tde_scan.py -h.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ampel_nuclear-0.8.3a3.tar.gz (6.5 MB view details)

Uploaded Source

Built Distribution

ampel_nuclear-0.8.3a3-py3-none-any.whl (6.8 MB view details)

Uploaded Python 3

File details

Details for the file ampel_nuclear-0.8.3a3.tar.gz.

File metadata

  • Download URL: ampel_nuclear-0.8.3a3.tar.gz
  • Upload date:
  • Size: 6.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.8 Linux/5.15.0-1024-azure

File hashes

Hashes for ampel_nuclear-0.8.3a3.tar.gz
Algorithm Hash digest
SHA256 cb1df52e5b1cb1f903426117316a34afecdc5934d3f667b801b2371968ae8b2c
MD5 37fa4ae766e9a9a93c5c4e668434535f
BLAKE2b-256 5f63f91b3a3e7e418a975455040f7b7e439b3a85ae6a262d2d923ff5be358ab1

See more details on using hashes here.

File details

Details for the file ampel_nuclear-0.8.3a3-py3-none-any.whl.

File metadata

  • Download URL: ampel_nuclear-0.8.3a3-py3-none-any.whl
  • Upload date:
  • Size: 6.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.8 Linux/5.15.0-1024-azure

File hashes

Hashes for ampel_nuclear-0.8.3a3-py3-none-any.whl
Algorithm Hash digest
SHA256 f9c18aefcd1827201d4634facaf9b968c0dd1f94a3ff2b30c5a7a3ca23811113
MD5 a23610b32c123cdf12c0c51caba52173
BLAKE2b-256 62e3a321afdfb67ea3a1c1b99043a8d3e63914123f1528f72005fd57ba0cc7eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page