uvex_transients.utils.resolve_healpix_resolution#

uvex_transients.utils.resolve_healpix_resolution(nside: int | None = None, order: str | None = None) → tuple[int, str][source]#

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

Shared by every ~uvex_transients.surveys.base.SurveySchedule query and ~uvex_transients.simulation.core.SurveySimulator sampling-grid method that accepts nside/order – so config["healpix.default_nside"]/ config["healpix.default_order"] set the shared resolution once, the same way ~uvex_transients.utils.cosmology.get_cosmology resolves an omitted cosmology from config["physics.default_cosmology"], rather than each call site carrying its own (previously inconsistent) hardcoded literal.

Parameters:
  • nside (int or None, optional) – HEALPix resolution parameter, or None to use config["healpix.default_nside"].

  • order (str or None, optional) – HEALPix pixel ordering scheme ("nested" or "ring"), or None to use config["healpix.default_order"].

Returns:

  • nside (int) – Resolved HEALPix resolution parameter.

  • order (str) – Resolved HEALPix pixel ordering scheme.