Skip to content

Commit b21812a

Browse files
committed
refactor!: depend on and import autonerves (renamed from autoconf)
Update the pyproject dependency pins and all `import autoconf` / `from autoconf` statements (including the config re-export block) to the renamed package `autonerves`. Repo-name references ("PyAutoConf") are unchanged — they flip with the GitHub repo rename in the coordinated cutover. BREAKING CHANGE: this library now requires `autonerves` instead of `autoconf`. CI resolves it from the same-named PyAutoConf branch (built as autonerves). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013ciVftxvYpefh59wSkR7jN
1 parent 18afa98 commit b21812a

23 files changed

Lines changed: 54 additions & 54 deletions

File tree

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ point-source datasets.
1212

1313
Dependency direction: autolens sits at the top of the stack and may import all
1414
four layers below it — **autogalaxy**, **autoarray**, **autofit**, and
15-
**autoconf**. Nothing in the ecosystem imports autolens.
15+
**autonerves**. Nothing in the ecosystem imports autolens.
1616

1717
## Related repos
1818

@@ -51,7 +51,7 @@ is no black/ruff/flake8 gate — formatting is advisory. (`requires-python` in
5151

5252
## Configuration & defaults
5353

54-
autoconf supplies the packaged defaults under `autolens/config/`. Workspaces
54+
autonerves supplies the packaged defaults under `autolens/config/`. Workspaces
5555
override them via their own `config/` directory; the test suite pushes a local
5656
config dir via `conf.instance.push(...)` in `test_autolens/conftest.py`. When a
5757
change adds a new config key, mirror it into the packaged defaults so

autolens/__init__.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from autoconf import jax_wrapper
2-
from autoconf.dictable import from_dict, from_json, output_to_json, to_dict
1+
from autonerves import jax_wrapper
2+
from autonerves.dictable import from_dict, from_json, output_to_json, to_dict
33
from autoarray import preprocess
44

55
from autoarray.dataset.imaging.dataset import Imaging
@@ -135,18 +135,18 @@
135135
from . import util
136136
from . import potential_correction as pc
137137

138-
from autoconf import conf
139-
from autoconf.fitsable import ndarray_via_hdu_from
140-
from autoconf.fitsable import ndarray_via_fits_from
141-
from autoconf.fitsable import header_obj_from
142-
from autoconf.fitsable import output_to_fits
143-
from autoconf.fitsable import hdu_list_for_output_from
138+
from autonerves import conf
139+
from autonerves.fitsable import ndarray_via_hdu_from
140+
from autonerves.fitsable import ndarray_via_fits_from
141+
from autonerves.fitsable import header_obj_from
142+
from autonerves.fitsable import output_to_fits
143+
from autonerves.fitsable import hdu_list_for_output_from
144144

145145
conf.instance.register(__file__)
146146

147147
__version__ = "2026.7.9.1"
148148

149-
from autoconf import check_version
149+
from autonerves import check_version
150150

151151
check_version(__version__)
152152

@@ -166,28 +166,28 @@ def __getattr__(name):
166166
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
167167

168168
# ---------------------------------------------------------------------------
169-
# Public re-export of the autoconf configuration / serialization surface.
169+
# Public re-export of the autonerves configuration / serialization surface.
170170
#
171171
# Workspaces, tutorials and downstream code import these names from the science
172172
# library (e.g. ``from autolens import conf``) rather than depending on the
173-
# ``autoconf`` package directly, so the underlying configuration / serialization
173+
# ``autonerves`` package directly, so the underlying configuration / serialization
174174
# layer stays an implementation detail of the library.
175175
# ---------------------------------------------------------------------------
176-
from autoconf import conf
177-
from autoconf import jax_wrapper
178-
from autoconf import fitsable
179-
from autoconf import setup_colab
180-
from autoconf import setup_notebook
181-
from autoconf.conf import with_config
182-
from autoconf.dictable import from_dict, from_json, to_dict, output_to_json
183-
from autoconf.fitsable import (
176+
from autonerves import conf
177+
from autonerves import jax_wrapper
178+
from autonerves import fitsable
179+
from autonerves import setup_colab
180+
from autonerves import setup_notebook
181+
from autonerves.conf import with_config
182+
from autonerves.dictable import from_dict, from_json, to_dict, output_to_json
183+
from autonerves.fitsable import (
184184
output_to_fits,
185185
hdu_list_for_output_from,
186186
ndarray_via_fits_from,
187187
ndarray_via_hdu_from,
188188
header_obj_from,
189189
)
190-
from autoconf.test_mode import (
190+
from autonerves.test_mode import (
191191
with_test_mode_segment,
192192
skip_visualization,
193193
skip_fit_output,

autolens/analysis/analysis/dataset.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import os
1818
from typing import List, Optional
1919

20-
from autoconf import conf
21-
from autoconf.dictable import output_to_json
20+
from autonerves import conf
21+
from autonerves.dictable import output_to_json
2222

2323
import autofit as af
2424
import autoarray as aa
@@ -31,7 +31,7 @@
3131
from autolens.analysis.positions import PositionsLH
3232

3333
from autolens import exc
34-
from autoconf.test_mode import skip_checks
34+
from autonerves.test_mode import skip_checks
3535

3636
logger = logging.getLogger(__name__)
3737

autolens/analysis/latent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import numpy as np
2525

2626
import autofit as af
27-
from autoconf import conf
27+
from autonerves import conf
2828
from autogalaxy.imaging.model.latent import (
2929
ab_mag_via_flux_from,
3030
flux_mujy_via_ab_mag_from,

autolens/analysis/result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
)
3333
from autolens.lens.tracer import Tracer
3434
from autolens.point.solver import PointSolver
35-
from autoconf.test_mode import is_test_mode, skip_checks
35+
from autonerves.test_mode import is_test_mode, skip_checks
3636

3737
logger = logging.getLogger(__name__)
3838

autolens/config/latent.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# `false` and return NaN + one warning per process if enabled without
1616
# `magzero` (rather than raising, which would discard a converged search).
1717
#
18-
# autoconf lowercases yaml keys at read time, so the registry/yaml names
18+
# autonerves lowercases yaml keys at read time, so the registry/yaml names
1919
# must be snake_case-lowercase (this leaks into the `latent.csv` column
2020
# header — e.g. `total_lens_flux_mujy`, not `_muJy`).
2121

autolens/imaging/fit_imaging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import numpy as np
2424
from typing import Dict, List, Optional
2525

26-
from autoconf import cached_property
26+
from autonerves import cached_property
2727

2828
import autoarray as aa
2929
import autogalaxy as ag

autolens/imaging/model/analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import autofit as af
1919
import autogalaxy as ag
2020

21-
from autoconf.fitsable import hdu_list_for_output_from
21+
from autonerves.fitsable import hdu_list_for_output_from
2222

2323
from autolens.analysis.analysis.dataset import AnalysisDataset
2424
from autolens.analysis.latent import LatentLens

autolens/interferometer/fit_interferometer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import numpy as np
1919
from typing import Dict, List, Optional
2020

21-
from autoconf import cached_property
21+
from autonerves import cached_property
2222

2323
import autoarray as aa
2424
import autogalaxy as ag

autolens/interferometer/model/analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import numpy as np
1717
from typing import Optional
1818

19-
from autoconf.dictable import to_dict
20-
from autoconf.fitsable import hdu_list_for_output_from
19+
from autonerves.dictable import to_dict
20+
from autonerves.fitsable import hdu_list_for_output_from
2121

2222
import autofit as af
2323
import autoarray as aa

0 commit comments

Comments
 (0)