Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ longer-term roadmap (WFC3, JWST, per-exposure frame products) in
## Installation

```bash
pip install autoreduce # core (outputs + packaging only)
pip install "autoreduce[hst]" # + the STScI HST reduction stack (drizzlepac)
pip install "autoreduce[psf]" # + high-fidelity PSF reconstruction back-ends
pip install pyautoreduce # core (outputs + packaging only)
pip install "pyautoreduce[hst]" # + the STScI HST reduction stack (drizzlepac)
pip install "pyautoreduce[psf]" # + high-fidelity PSF reconstruction back-ends
```
6 changes: 5 additions & 1 deletion autoreduce/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
from importlib.metadata import version as _version, PackageNotFoundError

try:
__version__ = _version("autoreduce")
# The distribution is `pyautoreduce`; the import package is `autoreduce`
# (PyAutoReduce#71). Looking up "autoreduce" here would resolve to the
# unrelated PyPI project of that name when it happens to be installed, and
# fall back to "0.0.dev0" when it is not.
__version__ = _version("pyautoreduce")
except PackageNotFoundError:
__version__ = "0.0.dev0"

Expand Down
2 changes: 1 addition & 1 deletion autoreduce/package/cosmic_rays.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def masker_for(adapter_key: str) -> Callable[[np.ndarray], np.ndarray]:
except ImportError as err:
raise ImportError(
"frame_products needs deepCR for per-frame cosmic-ray masks — "
"pip install autoreduce[frames] (or pip install deepCR)"
"pip install pyautoreduce[frames] (or pip install deepCR)"
) from err
model = deepCR(mask=DEEPCR_MODELS[adapter_key], device="CPU")

Expand Down
2 changes: 1 addition & 1 deletion autoreduce/psf/stpsf_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def model_frame_psf(
import stpsf
except ImportError as err:
raise ImportError(
"tier-2b model PSFs need stpsf — pip install autoreduce[psf] "
"tier-2b model PSFs need stpsf — pip install pyautoreduce[psf] "
"(or pip install stpsf, plus its reference data)"
) from err
import poppy
Expand Down
2 changes: 1 addition & 1 deletion docs/design/hst_acs_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ Design decisions:
model + threshold, so datasets remain re-maskable). WFC3/IR skips deepCR
— calwf3 up-the-ramp fitting already flags IR CRs in DQ.
Mask-only by contract: deepCR inpainting is never used — bad pixels are
masked, never fabricated. Optional dependency: `autoreduce[frames]`.
masked, never fabricated. Optional dependency: `pyautoreduce[frames]`.
- **Masking policy** — any nonzero DQ bit, deepCR CR pixel, off-chip or
non-finite/non-positive-ERR pixel is masked-by-noise
(`noise = MASKED_NOISE_VALUE`, `data = 0`), so each frame's
Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ requires = ["setuptools>=79.0", "setuptools-scm", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "autoreduce"
# The distribution name is `pyautoreduce`, NOT `autoreduce`: `autoreduce` on
# PyPI belongs to an unrelated, actively maintained project
# (github.com/ayush9pandey/AutoReduce — automated model reduction of nonlinear
# dynamical systems, 0.1.0 in 2020 through 0.9 in 2026). We cannot publish
# under it, and until 2026-08-24 our own README told users to install it.
# The IMPORT package stays `autoreduce` — see PyAutoReduce#71.
name = "pyautoreduce"
dynamic = ["version"]
description = "Data reduction of HST (and future JWST/other) imaging into modeling-ready datasets for PyAutoLens and PyAutoGalaxy"
readme = { file = "README.md", content-type = "text/markdown" }
Expand Down
Loading