uvex_transients.utils#

Package-wide configuration, logging, and random-number-generation helpers.

Functions

get_rng([rng])

Return a NumPy random-number generator.

get_seed_sequence([seed])

Return a NumPy ~numpy.random.SeedSequence.

resolve_healpix_resolution([nside, order])

Fill in an omitted HEALPix nside/order from the configured default.

spawn_seeds(spawn_sequence, n[, indices])

Derive n independent, reproducible, individually storable seeds.

split_root_seed([seed])

Split a root seed into an "immediate draws" generator and a "per-event seeds" spawner.

validate_sampling_factor(sampling_factor)

Check a sampling_factor and return it as a float, with None meaning 1.

Modules

config

Hierarchical configuration manager with dot-separated keys and optional autosave.

cosmology

Cosmological utility functions.

filter_utils

Utilities for fetching filters from SVO.

io_utils

YAML (de)serialization helpers for the package configuration.

keyed_noise

Stateless, key-addressed standard-normal draws, for noise that must not depend on draw order.

lightcurve_archive

Access to the packaged literature light-curve archive (test_data/transients/lightcurves.h5).

log

Logging setup for uvex_transients.

luminosity_function_archive

Access to the packaged archive of observed luminosity functions (test_data/transients/luminosity_functions.h5).

phot_utils

Photometry utilities: bandpasses as arrays, AB magnitudes, and integrating a spectrum over bands.

plotting

Shared plotting infrastructure for uvex_transients.

results

Downloading the published simulation results attached to UVEX Transients GitHub releases.

stat_utils

Reusable statistical operations.

summary_report

Standard per-population report on an event summary table, the one a release's event_summary.ecsv holds.

swift_sne_archive

Access to the packaged Swift/UVOT supernova UV light-curve archive (swift_sne_uv_lightcurves.h5).

updates

Warn when the installed UVEX Transients is older than the latest GitHub release.