Skip to content

Commit a2dc8d7

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 419679e commit a2dc8d7

40 files changed

Lines changed: 71 additions & 71 deletions

AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ inversions for linear profiles/pixelizations, and adapt-image multi-stage
1212
fitting.
1313

1414
Dependency direction: autogalaxy may import **autoarray** (data structures),
15-
**autofit** (model-fitting), and **autoconf** (config). It must **never**
15+
**autofit** (model-fitting), and **autonerves** (config). It must **never**
1616
import `autolens` — lensing lives one layer up.
1717

1818
## Related repos
@@ -52,7 +52,7 @@ is no black/ruff/flake8 gate — formatting is advisory. (`requires-python` in
5252

5353
## Configuration & defaults
5454

55-
autoconf supplies the packaged defaults under `autogalaxy/config/`. Workspaces
55+
autonerves supplies the packaged defaults under `autogalaxy/config/`. Workspaces
5656
override them via their own `config/` directory; the test suite pushes a local
5757
config dir via `conf.instance.push(...)` in `test_autogalaxy/conftest.py`. When
5858
a change adds a new config key, mirror it into the packaged defaults so
@@ -91,7 +91,7 @@ Profiles are namespaced there (`ag.lp.*`, `ag.lp_linear.*`, `ag.mp.*`,
9191

9292
## Key rules / footguns
9393

94-
- Import direction: autoarray / autofit / autoconf only — **never** `autolens`.
94+
- Import direction: autoarray / autofit / autonerves only — **never** `autolens`.
9595
- Operate mixins are `OperateImage` (`operate/image.py`) and `LensCalc`
9696
(`operate/lens_calc.py`). There is no `OperateDeflections` / `operate/
9797
deflections.py`.

autogalaxy/__init__.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
from autoconf import jax_wrapper
2-
from autoconf.dictable import register_parser
1+
from autonerves import jax_wrapper
2+
from autonerves.dictable import register_parser
33
from autofit import conf
44

55
conf.instance.register(__file__)
66

7-
from autoconf.dictable import from_dict, from_json, output_to_json, to_dict
7+
from autonerves.dictable import from_dict, from_json, output_to_json, to_dict
88
from autoarray.dataset import preprocess # noqa
99

1010
from autoarray.dataset.imaging.dataset import Imaging # noqa
@@ -121,16 +121,16 @@
121121
from .gui.clicker import Clicker
122122
from .gui.scribbler import Scribbler
123123

124-
from autoconf import conf
125-
from autoconf.fitsable import ndarray_via_hdu_from
126-
from autoconf.fitsable import ndarray_via_fits_from
127-
from autoconf.fitsable import header_obj_from
128-
from autoconf.fitsable import output_to_fits
129-
from autoconf.fitsable import hdu_list_for_output_from
124+
from autonerves import conf
125+
from autonerves.fitsable import ndarray_via_hdu_from
126+
from autonerves.fitsable import ndarray_via_fits_from
127+
from autonerves.fitsable import header_obj_from
128+
from autonerves.fitsable import output_to_fits
129+
from autonerves.fitsable import hdu_list_for_output_from
130130

131131
__version__ = "2026.7.9.1"
132132

133-
from autoconf import check_version
133+
from autonerves import check_version
134134

135135
check_version(__version__)
136136

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

152152
# ---------------------------------------------------------------------------
153-
# Public re-export of the autoconf configuration / serialization surface.
153+
# Public re-export of the autonerves configuration / serialization surface.
154154
#
155155
# Workspaces, tutorials and downstream code import these names from the science
156156
# library (e.g. ``from autolens import conf``) rather than depending on the
157-
# ``autoconf`` package directly, so the underlying configuration / serialization
157+
# ``autonerves`` package directly, so the underlying configuration / serialization
158158
# layer stays an implementation detail of the library.
159159
# ---------------------------------------------------------------------------
160-
from autoconf import conf
161-
from autoconf import jax_wrapper
162-
from autoconf import fitsable
163-
from autoconf import setup_colab
164-
from autoconf import setup_notebook
165-
from autoconf.conf import with_config
166-
from autoconf.dictable import from_dict, from_json, to_dict, output_to_json
167-
from autoconf.fitsable import (
160+
from autonerves import conf
161+
from autonerves import jax_wrapper
162+
from autonerves import fitsable
163+
from autonerves import setup_colab
164+
from autonerves import setup_notebook
165+
from autonerves.conf import with_config
166+
from autonerves.dictable import from_dict, from_json, to_dict, output_to_json
167+
from autonerves.fitsable import (
168168
output_to_fits,
169169
hdu_list_for_output_from,
170170
ndarray_via_fits_from,
171171
ndarray_via_hdu_from,
172172
header_obj_from,
173173
)
174-
from autoconf.test_mode import (
174+
from autonerves.test_mode import (
175175
with_test_mode_segment,
176176
skip_visualization,
177177
skip_fit_output,

autogalaxy/aggregator/agg_util.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 List, Optional
2525

26-
from autoconf.fitsable import ndarray_via_hdu_from
26+
from autonerves.fitsable import ndarray_via_hdu_from
2727

2828
import autofit as af
2929
import autoarray as aa

autogalaxy/aggregator/imaging/imaging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from functools import partial
1717
from typing import List
1818

19-
from autoconf.fitsable import ndarray_via_hdu_from
19+
from autonerves.fitsable import ndarray_via_hdu_from
2020

2121
import autofit as af
2222
import autoarray as aa

autogalaxy/analysis/adapt_images/adapt_images.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import numpy as np
33
from typing import TYPE_CHECKING, Dict, List, Optional, Tuple
44

5-
from autoconf import conf
6-
from autoconf import cached_property
5+
from autonerves import conf
6+
from autonerves import cached_property
77

88
import autoarray as aa
99

@@ -41,7 +41,7 @@ def _galaxy_image_dict_from_cache(cache_path) -> Optional[Dict]:
4141
from astropy.io import fits as astropy_fits
4242

4343
from autoarray.mask.mask_2d import Mask2DKeys
44-
from autoconf.fitsable import ndarray_via_hdu_from
44+
from autonerves.fitsable import ndarray_via_hdu_from
4545

4646
if cache_path is None or not cache_path.exists():
4747
return None
@@ -82,7 +82,7 @@ def _galaxy_image_dict_to_cache(cache_path, galaxy_name_image_dict: Dict, paths)
8282
the same FITS layout ``_galaxy_image_dict_from_cache`` reads, and preserve
8383
it in the search's zip archive so later resumes keep it.
8484
"""
85-
from autoconf.fitsable import hdu_list_for_output_from
85+
from autonerves.fitsable import hdu_list_for_output_from
8686

8787
image_list = [
8888
galaxy_name_image_dict[name].native_for_fits

autogalaxy/analysis/analysis/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import numpy as np
33
from typing import Optional, Union
44

5-
from autoconf.dictable import to_dict, output_to_json
5+
from autonerves.dictable import to_dict, output_to_json
66

77
import autofit as af
88
import autoarray as aa

autogalaxy/analysis/chaining_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
from typing import TYPE_CHECKING, Optional
33
from pathlib import Path
44

5-
from autoconf import conf
6-
from autoconf.dictable import from_json, output_to_json
5+
from autonerves import conf
6+
from autonerves.dictable import from_json, output_to_json
77

88
import autoarray as aa
99
import autofit as af

autogalaxy/analysis/jax_pytrees.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def register_galaxies_pytree() -> None:
2020
calls (e.g. from each ``Analysis*.fit_from``) are cheap.
2121
"""
2222
from autoarray.abstract_ndarray import _pytree_registered_classes
23-
from autoconf.jax_wrapper import register_pytree_node
23+
from autonerves.jax_wrapper import register_pytree_node
2424
from autogalaxy.galaxy.galaxies import Galaxies
2525

2626
if Galaxies in _pytree_registered_classes:

autogalaxy/analysis/plotter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pathlib import Path
77
from autoarray.plot.output import Output
88

9-
from autoconf import conf
9+
from autonerves import conf
1010

1111
import autoarray as aa
1212

autogalaxy/analysis/result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class (e.g. `ResultImaging`, `ResultInterferometer`) that inherits from the base
1919

2020
from typing import TYPE_CHECKING
2121

22-
from autoconf import cached_property
22+
from autonerves import cached_property
2323

2424
import autofit as af
2525
import autoarray as aa

0 commit comments

Comments
 (0)