ztforce.cache

Cache directory layout and path helpers.

Classes

CacheConfig

Root cache directory for all ztforce data.

Functions

make_cache(→ CacheConfig)

Create a CacheConfig, defaulting to ~/.ztforce/cache.

lightcurve_path(→ pathlib.Path)

Path for a cached per-source lightcurve ECSV.

Module Contents

class CacheConfig[source]

Root cache directory for all ztforce data.

root: pathlib.Path[source]
make_cache(root: str | pathlib.Path | None = None) CacheConfig[source]

Create a CacheConfig, defaulting to ~/.ztforce/cache.

lightcurve_path(cache: CacheConfig, ra: float, dec: float, band: str) pathlib.Path[source]

Path for a cached per-source lightcurve ECSV.