NEEDLE-TRACK
Transient Recognition, Annotation, and Classification Kit
System Overview
NEEDLE-TRACK is a local system (with future migration potential to cloud or other machines) for managing transient data from Lasair (ZTF). It provides structured data storage, update tracking, search capabilities, and a publicly available package for easy deployment.
Core Components
-
Local System Management
- Designed to run locally, with future migration capability to cloud or other machines.
- Configuration options allow users to set up the system on various environments.
-
Database for Data Storage
- Stores transient objects with changeable tags and associated comments for further annotation.
- Maintains an Update List to track objects whose data has changed or that have new incoming updates.
- Supports updates and tracking of object status changes.
-
Terminal Interface
- Users interact with the system through a command-line interface (CLI).
- Provides commands for ingestion, searching, commenting, and annotation.
-
Search Function
- Query objects by unique ZTF ID.
- Filter objects based on tags.
- Search based on annotation status (astronote presence).
-
Public Package Distribution
- The package, named
needle_track, is hosted on GitHub for public access. - Includes installation instructions, dependencies, and usage guidelines.
- The package, named
Data Ingestion
- Source: Data exported from Lasair broker (ZTF).
- Format: JSON.
- Update Mechanism:
- Runs a script to fetch the latest data (default: past week, customizable).
- Checks for overlapping entries:
- Overlap Check: Compares incoming data with existing records.
- If overlaps are detected, the system updates the existing record and logs it into the Update List.
- New records are added directly to the database.
- Objects that are not interested are moved to the Removed List.
- Overlap Check: Compares incoming data with existing records.
- Generates a report summarizing all updates and changes.
Data Storage
-
SQL Database Structure:
- object table: list of all objects in the database.
-
Object Structure:
- ZTF ID: Unique identifier from Lasair.
- Object Properties: Data and metadata from Lasair.
- followup: indicator if the object has been marked for followup.
- snoozed: indicator if the object has been marked as snoozed.
- astronote: indicator if the object has been marked as astronote.
- Comments: User-added comments or notes for each object.
- Link: URL reference to the Lasair entry for further details.
Tutorial
- Initialize the database
needle-track -i
- Ingest data
needle-track ingest --slsn <path_to_data> --tde <path_to_data>
- Search for objects
needle-track search --objectId/-o <object_id>needle-track search --followup/-fneedle-track search --snoozed/-sneedle-track search --astronote/-aneedle-track search --list/-l
- Update objects
needle-track update --objectId/-o <object_id> --followup/-f -c This is a commentneedle-track update --objectId/-o <object_id> --snoozed/-s -c This is a commentneedle-track update --objectId/-o <object_id> --astronote/-a -c This is a comment
- Add comments
needle-track comment -o <object_id> This is a comment
Metadata
Release files for needle-track 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| needle_track-0.1.6.tar.gz | 13.4 kB | Without provenance | Details for needle_track-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| needle_track-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for needle_track-0.1.6-py3-none-any.whl |
Total release size: 22.9 kB
Release files / needle_track-0.1.6.tar.gz
| Download URL | needle_track-0.1.6.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
674b03375453d1b2334c336f81acc516b3295da9f91cebd178eb8dfd110097eb
|
|
BLAKE2b-256 checksum How to use checksums |
7620ebfa7f2e6caa45826f207b54cccffce7ecb1c59b1c7b2a72dae16e3be432
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.3
|
Release files / needle_track-0.1.6-py3-none-any.whl
| Download URL | needle_track-0.1.6-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ed41c9f8e04c3a2a9534aebd0e68ab199e60451517a12552997a332c6e7474d
|
|
BLAKE2b-256 checksum How to use checksums |
b07b1ee9f8d8503cfe70c839ff8f61419d4126bfea2b441dc710298189f2fd09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.3
|
Security for needle-track 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.