Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Metadata

Release files for ampel-nuclear 0.8.3a4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ampel-nuclear 0.8.3a4
File Size Uploaded
ampel_nuclear-0.8.3a4.tar.gz 6.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for ampel-nuclear 0.8.3a4
File Interpreter ABI Platform
ampel_nuclear-0.8.3a4-py3-none-any.whl Python 3 none any Details

Total release size: 13.2 MB

Release files / ampel_nuclear-0.8.3a4.tar.gz

Download URL ampel_nuclear-0.8.3a4.tar.gz
Size 6.5 MB
Tags Source
SHA-256 checksum
How to use checksums
956b00796a0e7e41def9f9e26761eb7bc0ef6110ff76fb4f51f60e7496603a3e
BLAKE2b-256 checksum
How to use checksums
2b7a9d7636d62073a3421adc54e7e13d5cf536a5c37e5170ac7b05818e9c72dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.9 Linux/5.15.0-1024-azure

Release files / ampel_nuclear-0.8.3a4-py3-none-any.whl

Download URL ampel_nuclear-0.8.3a4-py3-none-any.whl
Size 6.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a4c95684806266995ca5b6c554d0dae26b679a070f68d60a6bc73e134469622e
BLAKE2b-256 checksum
How to use checksums
378a2e28df20e52d4e7f3d091af41a2e6744367c606495dd75bc2769591033c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.9 Linux/5.15.0-1024-azure
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page