From 42460bd3a5afeb589d4382f0c2ef5ef6b69ac32c Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 19 Jul 2026 11:46:38 +0000 Subject: [PATCH 1/2] refactor!: depend on and import `autonerves` (renamed from autoconf) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Claude-Session: https://claude.ai/code/session_013ciVftxvYpefh59wSkR7jN --- AGENTS.md | 8 +++--- autofit/__init__.py | 26 +++++++++---------- autofit/aggregator/file_output.py | 2 +- autofit/aggregator/search_output.py | 8 +++--- autofit/conf.py | 2 +- autofit/database/__init__.py | 2 +- autofit/database/model/array.py | 2 +- autofit/database/model/fit.py | 2 +- autofit/database/model/model.py | 2 +- autofit/exc.py | 2 +- .../expectation_propagation/ep_mean_field.py | 2 +- autofit/graphical/factor_graphs/abstract.py | 2 +- autofit/graphical/factor_graphs/graph.py | 2 +- autofit/graphical/factor_graphs/jacobians.py | 2 +- autofit/graphical/factor_graphs/transform.py | 2 +- autofit/graphical/laplace/line_search.py | 2 +- autofit/graphical/mean_field.py | 2 +- autofit/jax/pytrees.py | 4 +-- autofit/mapper/identifier.py | 2 +- autofit/mapper/model.py | 2 +- autofit/mapper/model_object.py | 4 +-- autofit/mapper/operator.py | 2 +- autofit/mapper/prior/abstract.py | 2 +- autofit/mapper/prior/width_modifier.py | 4 +-- autofit/mapper/prior_model/abstract.py | 4 +-- autofit/mapper/prior_model/array.py | 2 +- autofit/mapper/prior_model/prior_model.py | 4 +-- autofit/mapper/variable.py | 2 +- autofit/mapper/variable_operator.py | 2 +- autofit/messages/abstract.py | 2 +- autofit/messages/beta.py | 2 +- autofit/messages/fixed.py | 2 +- autofit/messages/gamma.py | 2 +- autofit/messages/interface.py | 2 +- autofit/messages/normal.py | 2 +- autofit/messages/truncated_normal.py | 2 +- autofit/non_linear/analysis/latent.py | 2 +- autofit/non_linear/analysis/visualize.py | 2 +- autofit/non_linear/fitness.py | 4 +-- .../non_linear/grid/grid_search/__init__.py | 2 +- .../non_linear/grid/sensitivity/__init__.py | 4 +-- autofit/non_linear/parallel/sneaky.py | 2 +- autofit/non_linear/paths/abstract.py | 6 ++--- autofit/non_linear/paths/database.py | 4 +-- autofit/non_linear/paths/directory.py | 8 +++--- autofit/non_linear/plot/nest_plotters.py | 2 +- autofit/non_linear/plot/samples_plotters.py | 2 +- autofit/non_linear/samples/efficient.py | 2 +- autofit/non_linear/samples/pdf.py | 4 +-- autofit/non_linear/samples/sample.py | 2 +- autofit/non_linear/samples/samples.py | 4 +-- autofit/non_linear/search/abstract_search.py | 4 +-- .../non_linear/search/mcmc/abstract_mcmc.py | 2 +- .../search/mcmc/blackjax/nuts/search.py | 4 +-- .../non_linear/search/mcmc/emcee/search.py | 2 +- autofit/non_linear/search/mle/abstract_mle.py | 2 +- .../non_linear/search/nest/abstract_nest.py | 2 +- autofit/non_linear/search/updater.py | 4 +-- autofit/non_linear/test_mode.py | 2 +- autofit/text/formatter.py | 2 +- autofit/text/text_util.py | 2 +- autofit/tools/util.py | 2 +- autofit/visualise.py | 2 +- docs/cookbooks/result.md | 2 +- docs/features/interpolate.md | 2 +- docs/general/configs.md | 2 +- eden.yaml | 2 +- pyproject.toml | 4 +-- test_autofit/aggregator/test_reference.py | 2 +- .../analysis/test_latent_variables.py | 2 +- test_autofit/conftest.py | 2 +- .../database/migration/test_steps_match.py | 2 +- test_autofit/database/paths/test_paths.py | 2 +- .../graphical/gaussian/test_optimizer.py | 2 +- test_autofit/graphical/info/test_output.py | 2 +- .../interpolator/test_interpolator.py | 2 +- .../mapper/model/serialise/test_json.py | 2 +- test_autofit/mapper/model/test_regression.py | 2 +- test_autofit/mapper/test_array.py | 2 +- test_autofit/mapper/test_parameterization.py | 2 +- .../grid/test_paths/test_indicators.py | 2 +- .../grid/test_sensitivity/test_run.py | 2 +- test_autofit/non_linear/paths/test_paths.py | 2 +- .../non_linear/paths/test_serialise_paths.py | 2 +- .../non_linear/samples/test_output_type.py | 2 +- test_autofit/non_linear/samples/test_pdf.py | 2 +- .../search/mle/test_multi_start_gradient.py | 2 +- .../non_linear/search/optimize/test_drawer.py | 2 +- .../non_linear/search/test_abstract_search.py | 2 +- .../non_linear/search/test_logging.py | 2 +- .../non_linear/search/test_sneaky_map.py | 2 +- .../non_linear/search/test_updater.py | 2 +- test_autofit/non_linear/test_dict.py | 2 +- test_autofit/serialise/test_regression.py | 2 +- test_autofit/serialise/test_samples.py | 2 +- 95 files changed, 132 insertions(+), 132 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 14b9fcf29..cde074f94 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -10,9 +10,9 @@ model composition, non-linear search, and Bayesian inference: `af.Model` / `af.Collection`, the `af.Analysis` interface, MCMC / nested-sampling / MLE searches, samples, aggregator, and a SQLAlchemy results database. -Dependency direction: autofit depends on **autoconf** only. It does **not** +Dependency direction: autofit depends on **autonerves** only. It does **not** import `autoarray`, `autogalaxy`, or `autolens` — never add such an import. -Shared utilities (e.g. `test_mode`, `jax_wrapper`) belong in autoconf. +Shared utilities (e.g. `test_mode`, `jax_wrapper`) belong in autonerves. ## Related repos @@ -47,7 +47,7 @@ is no black/ruff/flake8 gate — formatting is advisory. (`requires-python` in ## Configuration & defaults -autoconf supplies the packaged defaults under `autofit/config/`. Workspaces +autonerves supplies the packaged defaults under `autofit/config/`. Workspaces override them via their own `config/` directory; the test suite pushes a local config dir via `conf.instance.push(...)` in `test_autofit/conftest.py`. When a change adds a new config key, mirror it into the packaged defaults so @@ -70,7 +70,7 @@ nautilus; MLE: LBFGS/BFGS/drawer), `mapper/` (model + priors), ## Key rules / footguns -- Import direction: autoconf only — never `autoarray` / `autogalaxy` / +- Import direction: autonerves only — never `autoarray` / `autogalaxy` / `autolens`. - **The EP seam rule**: `autofit/graphical` is two layers — the inner factor-graph/message engine and the `declarative/` user layer. A new diff --git a/autofit/__init__.py b/autofit/__init__.py index ae4516a37..8282c306b 100644 --- a/autofit/__init__.py +++ b/autofit/__init__.py @@ -1,5 +1,5 @@ -from autoconf import jax_wrapper -from autoconf.dictable import register_parser +from autonerves import jax_wrapper +from autonerves.dictable import register_parser from . import conf conf.instance.register(__file__) @@ -146,34 +146,34 @@ def save_abc(pickler, obj): __version__ = "2026.7.9.1" -from autoconf import check_version +from autonerves import check_version check_version(__version__) # --------------------------------------------------------------------------- -# Public re-export of the autoconf configuration / serialization surface. +# Public re-export of the autonerves configuration / serialization surface. # # Workspaces, tutorials and downstream code import these names from the science # library (e.g. ``from autolens import conf``) rather than depending on the -# ``autoconf`` package directly, so the underlying configuration / serialization +# ``autonerves`` package directly, so the underlying configuration / serialization # layer stays an implementation detail of the library. # --------------------------------------------------------------------------- # ``conf`` is already exported above (``from . import conf``); the names below # complete the surface. -from autoconf import jax_wrapper -from autoconf import fitsable -from autoconf import setup_colab -from autoconf import setup_notebook -from autoconf.conf import with_config -from autoconf.dictable import from_dict, from_json, to_dict, output_to_json -from autoconf.fitsable import ( +from autonerves import jax_wrapper +from autonerves import fitsable +from autonerves import setup_colab +from autonerves import setup_notebook +from autonerves.conf import with_config +from autonerves.dictable import from_dict, from_json, to_dict, output_to_json +from autonerves.fitsable import ( output_to_fits, hdu_list_for_output_from, ndarray_via_fits_from, ndarray_via_hdu_from, header_obj_from, ) -from autoconf.test_mode import ( +from autonerves.test_mode import ( with_test_mode_segment, skip_visualization, skip_fit_output, diff --git a/autofit/aggregator/file_output.py b/autofit/aggregator/file_output.py index 88b5e2058..e9b4ffb74 100644 --- a/autofit/aggregator/file_output.py +++ b/autofit/aggregator/file_output.py @@ -7,7 +7,7 @@ import dill -from autoconf.dictable import from_dict +from autonerves.dictable import from_dict class FileOutput(ABC): diff --git a/autofit/aggregator/search_output.py b/autofit/aggregator/search_output.py index 5c573db39..d91aacab9 100644 --- a/autofit/aggregator/search_output.py +++ b/autofit/aggregator/search_output.py @@ -9,8 +9,8 @@ import dill from PIL import Image -from autoconf import cached_property -from autoconf.class_path import get_class +from autonerves import cached_property +from autonerves.class_path import get_class from autofit.non_linear.samples import Samples from autofit.non_linear.samples.pdf import SamplesPDF @@ -20,7 +20,7 @@ ) from autofit.mapper.identifier import Identifier from autofit.non_linear.samples.sample import samples_from_iterator -from autoconf.dictable import from_dict +from autonerves.dictable import from_dict from autofit.non_linear.samples.summary import SamplesSummary from autofit.non_linear.samples.util import simple_model_for_kwargs from . import fit_interface @@ -164,7 +164,7 @@ def value(self, name: str): This may be a pickle, json, csv or fits file. If the JSON has a specified type it is parsed as that type. See dictable.py - in autoconf. + in autonerves. Returns None if the file does not exist. diff --git a/autofit/conf.py b/autofit/conf.py index e67960ff1..d1860d0ff 100644 --- a/autofit/conf.py +++ b/autofit/conf.py @@ -1 +1 @@ -from autoconf.conf import * \ No newline at end of file +from autonerves.conf import * \ No newline at end of file diff --git a/autofit/database/__init__.py b/autofit/database/__init__.py index a142db5ba..c4e4460b8 100644 --- a/autofit/database/__init__.py +++ b/autofit/database/__init__.py @@ -3,7 +3,7 @@ from .sqlalchemy_ import sa -from autoconf import conf +from autonerves import conf from .aggregator import * from .migration.steps import migrator from .model import * diff --git a/autofit/database/model/array.py b/autofit/database/model/array.py index 51fffd0a7..af42438e5 100644 --- a/autofit/database/model/array.py +++ b/autofit/database/model/array.py @@ -1,6 +1,6 @@ import numpy as np -from autoconf.class_path import get_class_path, get_class +from autonerves.class_path import get_class_path, get_class from .model import Object from ..sqlalchemy_ import sa diff --git a/autofit/database/model/fit.py b/autofit/database/model/fit.py index af946baab..8b10a3fe9 100644 --- a/autofit/database/model/fit.py +++ b/autofit/database/model/fit.py @@ -6,7 +6,7 @@ import numpy as np -from autoconf.dictable import from_dict +from autonerves.dictable import from_dict from autofit.mapper.prior_model.abstract import AbstractPriorModel from autofit.non_linear.samples import Samples from .model import Base, Object diff --git a/autofit/database/model/model.py b/autofit/database/model/model.py index f04c572ec..3acda82d9 100644 --- a/autofit/database/model/model.py +++ b/autofit/database/model/model.py @@ -5,7 +5,7 @@ import numpy as np -from autoconf.class_path import get_class, get_class_path +from autonerves.class_path import get_class, get_class_path from ..sqlalchemy_ import sa from sqlalchemy.orm import declarative_base diff --git a/autofit/exc.py b/autofit/exc.py index 86a427419..e23e69c1e 100644 --- a/autofit/exc.py +++ b/autofit/exc.py @@ -1,4 +1,4 @@ -from autoconf.exc import PriorException +from autonerves.exc import PriorException class MessageException(PriorException): diff --git a/autofit/graphical/expectation_propagation/ep_mean_field.py b/autofit/graphical/expectation_propagation/ep_mean_field.py index 271f4f7d7..3aecf7bb2 100644 --- a/autofit/graphical/expectation_propagation/ep_mean_field.py +++ b/autofit/graphical/expectation_propagation/ep_mean_field.py @@ -3,7 +3,7 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property from autofit.graphical.factor_graphs.factor import Factor from autofit.graphical.factor_graphs.graph import FactorGraph from autofit.graphical.mean_field import MeanField, FactorApproximation diff --git a/autofit/graphical/factor_graphs/abstract.py b/autofit/graphical/factor_graphs/abstract.py index 83fb86034..91313813f 100644 --- a/autofit/graphical/factor_graphs/abstract.py +++ b/autofit/graphical/factor_graphs/abstract.py @@ -13,7 +13,7 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property from autofit.graphical.utils import ( FlattenArrays, nested_filter, diff --git a/autofit/graphical/factor_graphs/graph.py b/autofit/graphical/factor_graphs/graph.py index b3fb59667..11cdde19c 100644 --- a/autofit/graphical/factor_graphs/graph.py +++ b/autofit/graphical/factor_graphs/graph.py @@ -5,7 +5,7 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property from autofit.graphical.factor_graphs.abstract import FactorValue, AbstractNode from autofit.graphical.factor_graphs.factor import Factor from autofit.graphical.factor_graphs.jacobians import VectorJacobianProduct diff --git a/autofit/graphical/factor_graphs/jacobians.py b/autofit/graphical/factor_graphs/jacobians.py index 2c463adb4..0385b559d 100644 --- a/autofit/graphical/factor_graphs/jacobians.py +++ b/autofit/graphical/factor_graphs/jacobians.py @@ -1,6 +1,6 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property from autofit.graphical.utils import ( nested_filter, nested_update, diff --git a/autofit/graphical/factor_graphs/transform.py b/autofit/graphical/factor_graphs/transform.py index 8d22e678d..784b131f8 100644 --- a/autofit/graphical/factor_graphs/transform.py +++ b/autofit/graphical/factor_graphs/transform.py @@ -3,7 +3,7 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property from autofit.graphical.factor_graphs.abstract import AbstractNode, Value, FactorValue # from ...mapper.operator import from autofit.mapper.operator import ( diff --git a/autofit/graphical/laplace/line_search.py b/autofit/graphical/laplace/line_search.py index 9094061d1..fb3c097b6 100644 --- a/autofit/graphical/laplace/line_search.py +++ b/autofit/graphical/laplace/line_search.py @@ -12,7 +12,7 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property from autofit.graphical.factor_graphs.abstract import ( FactorValue, FactorInterface, diff --git a/autofit/graphical/mean_field.py b/autofit/graphical/mean_field.py index 1bd83ade6..9ae2f1548 100755 --- a/autofit/graphical/mean_field.py +++ b/autofit/graphical/mean_field.py @@ -6,7 +6,7 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property from autofit import exc from autofit.graphical.factor_graphs.abstract import AbstractNode from autofit.graphical.factor_graphs.factor import Factor diff --git a/autofit/jax/pytrees.py b/autofit/jax/pytrees.py index 5cd2bc8bc..105f1f2c9 100644 --- a/autofit/jax/pytrees.py +++ b/autofit/jax/pytrees.py @@ -2,12 +2,12 @@ The classes themselves already carry the necessary ``tree_flatten`` / ``tree_unflatten`` methods. This module simply registers them with -``jax.tree_util`` on demand, via the lazy autoconf wrapper, so callers can +``jax.tree_util`` on demand, via the lazy autonerves wrapper, so callers can pass ``Model`` / ``Collection`` / ``ModelInstance`` / prior instances through ``jax.jit`` and ``jax.vmap`` directly. """ -from autoconf.jax_wrapper import register_pytree_node, register_pytree_node_class +from autonerves.jax_wrapper import register_pytree_node, register_pytree_node_class _ENABLED = False _REGISTERED_INSTANCE_CLASSES: set = set() diff --git a/autofit/mapper/identifier.py b/autofit/mapper/identifier.py index 60a78a01a..2933f4ddc 100644 --- a/autofit/mapper/identifier.py +++ b/autofit/mapper/identifier.py @@ -3,7 +3,7 @@ from hashlib import md5 from typing import Optional -from autoconf.class_path import get_class_path +from autonerves.class_path import get_class_path # floats are rounded to this increment so floating point errors # have no impact on identifier value diff --git a/autofit/mapper/model.py b/autofit/mapper/model.py index d24ef82bc..f056bee02 100644 --- a/autofit/mapper/model.py +++ b/autofit/mapper/model.py @@ -95,7 +95,7 @@ def _cached_property_names(cls) -> frozenset: downstream JAX pytree flattening. See PyAutoFit#1300 for the diagnosed leak this defends against. """ - from autoconf.tools.decorators import cached_property_names + from autonerves.tools.decorators import cached_property_names return cached_property_names(cls) diff --git a/autofit/mapper/model_object.py b/autofit/mapper/model_object.py index 9756e51a6..3f76e6165 100644 --- a/autofit/mapper/model_object.py +++ b/autofit/mapper/model_object.py @@ -3,8 +3,8 @@ from typing import Type, Union, Tuple, Optional, Dict import logging -from autoconf.class_path import get_class -from autoconf.dictable import from_dict, to_dict +from autonerves.class_path import get_class +from autonerves.dictable import from_dict, to_dict from .identifier import Identifier logger = logging.getLogger(__name__) diff --git a/autofit/mapper/operator.py b/autofit/mapper/operator.py index ce9c4f062..e12150aaf 100644 --- a/autofit/mapper/operator.py +++ b/autofit/mapper/operator.py @@ -5,7 +5,7 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property class LinearOperator(ABC): diff --git a/autofit/mapper/prior/abstract.py b/autofit/mapper/prior/abstract.py index e65c271c4..e2492d8e5 100644 --- a/autofit/mapper/prior/abstract.py +++ b/autofit/mapper/prior/abstract.py @@ -6,7 +6,7 @@ import numpy as np -from autoconf import conf +from autonerves import conf from autofit.mapper.prior.arithmetic import ArithmeticMixin from autofit.mapper.prior.constant import Constant diff --git a/autofit/mapper/prior/width_modifier.py b/autofit/mapper/prior/width_modifier.py index a4b29ba0b..cdde2de2e 100644 --- a/autofit/mapper/prior/width_modifier.py +++ b/autofit/mapper/prior/width_modifier.py @@ -3,8 +3,8 @@ import sys from abc import ABC, abstractmethod -from autoconf import conf -from autoconf.exc import ConfigException +from autonerves import conf +from autonerves.exc import ConfigException logger = logging.getLogger(__name__) diff --git a/autofit/mapper/prior_model/abstract.py b/autofit/mapper/prior_model/abstract.py index 1cc8d3074..37a25ede3 100644 --- a/autofit/mapper/prior_model/abstract.py +++ b/autofit/mapper/prior_model/abstract.py @@ -9,8 +9,8 @@ import numpy as np -from autoconf import conf -from autoconf.exc import ConfigException +from autonerves import conf +from autonerves.exc import ConfigException from autofit import exc from autofit.mapper import model from autofit.mapper.model import AbstractModel, frozen_cache diff --git a/autofit/mapper/prior_model/array.py b/autofit/mapper/prior_model/array.py index 0a9080ec2..2b0c2b817 100644 --- a/autofit/mapper/prior_model/array.py +++ b/autofit/mapper/prior_model/array.py @@ -1,6 +1,6 @@ from typing import Tuple, Dict, Optional, Union -from autoconf.dictable import from_dict +from autonerves.dictable import from_dict from .abstract import AbstractPriorModel from autofit.mapper.prior.abstract import Prior import numpy as np diff --git a/autofit/mapper/prior_model/prior_model.py b/autofit/mapper/prior_model/prior_model.py index e758164e2..cf3537f58 100644 --- a/autofit/mapper/prior_model/prior_model.py +++ b/autofit/mapper/prior_model/prior_model.py @@ -6,8 +6,8 @@ import typing from typing import * -from autoconf.class_path import get_class_path -from autoconf.exc import ConfigException +from autonerves.class_path import get_class_path +from autonerves.exc import ConfigException from autofit.mapper.model import assert_not_frozen from autofit.mapper.model_object import ModelObject from autofit.mapper.prior.abstract import Prior diff --git a/autofit/mapper/variable.py b/autofit/mapper/variable.py index a1c2d7fe3..a3073901b 100644 --- a/autofit/mapper/variable.py +++ b/autofit/mapper/variable.py @@ -6,7 +6,7 @@ from math import sqrt import numpy as np -from autoconf import cached_property +from autonerves import cached_property from autofit.mapper.model_object import ModelObject diff --git a/autofit/mapper/variable_operator.py b/autofit/mapper/variable_operator.py index cf6f8b175..0eb7f9df7 100644 --- a/autofit/mapper/variable_operator.py +++ b/autofit/mapper/variable_operator.py @@ -5,7 +5,7 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property from autofit.mapper.operator import ( LinearOperator, diff --git a/autofit/messages/abstract.py b/autofit/messages/abstract.py index a9779a34f..58ac2669e 100644 --- a/autofit/messages/abstract.py +++ b/autofit/messages/abstract.py @@ -11,7 +11,7 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property from ..mapper.variable import Variable from .interface import MessageInterface diff --git a/autofit/messages/beta.py b/autofit/messages/beta.py index 8bb21bc22..3716ffcee 100644 --- a/autofit/messages/beta.py +++ b/autofit/messages/beta.py @@ -4,7 +4,7 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property from ..messages.abstract import AbstractMessage diff --git a/autofit/messages/fixed.py b/autofit/messages/fixed.py index 6e672847b..3417b43ca 100644 --- a/autofit/messages/fixed.py +++ b/autofit/messages/fixed.py @@ -2,7 +2,7 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property from autofit.messages.abstract import AbstractMessage diff --git a/autofit/messages/gamma.py b/autofit/messages/gamma.py index 0982f1783..63db00630 100644 --- a/autofit/messages/gamma.py +++ b/autofit/messages/gamma.py @@ -1,6 +1,6 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property from autofit.messages.abstract import AbstractMessage from autofit.messages.utils import invpsilog diff --git a/autofit/messages/interface.py b/autofit/messages/interface.py index c0d589553..038bd44c0 100644 --- a/autofit/messages/interface.py +++ b/autofit/messages/interface.py @@ -4,7 +4,7 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property class MessageInterface(ABC): diff --git a/autofit/messages/normal.py b/autofit/messages/normal.py index de0226f29..77f222fc3 100644 --- a/autofit/messages/normal.py +++ b/autofit/messages/normal.py @@ -4,7 +4,7 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property from autofit.mapper.operator import LinearOperator from autofit.messages.abstract import AbstractMessage from .composed_transform import TransformedMessage diff --git a/autofit/messages/truncated_normal.py b/autofit/messages/truncated_normal.py index 3d7c6e646..2687d90e9 100644 --- a/autofit/messages/truncated_normal.py +++ b/autofit/messages/truncated_normal.py @@ -4,7 +4,7 @@ import numpy as np -from autoconf import cached_property +from autonerves import cached_property from autofit.mapper.operator import LinearOperator from autofit.messages.abstract import AbstractMessage from .composed_transform import TransformedMessage diff --git a/autofit/non_linear/analysis/latent.py b/autofit/non_linear/analysis/latent.py index ac61e1608..67102f452 100644 --- a/autofit/non_linear/analysis/latent.py +++ b/autofit/non_linear/analysis/latent.py @@ -174,7 +174,7 @@ def _safe_compute(xx): def batched_compute_latent(x): return np.array([_safe_compute(xx) for xx in x]) - from autoconf.test_mode import inject_latent_nans + from autonerves.test_mode import inject_latent_nans parameter_array = np.array(samples.parameter_lists) diff --git a/autofit/non_linear/analysis/visualize.py b/autofit/non_linear/analysis/visualize.py index 364bf78bc..551d0b7f6 100644 --- a/autofit/non_linear/analysis/visualize.py +++ b/autofit/non_linear/analysis/visualize.py @@ -1,6 +1,6 @@ import os -from autoconf import conf +from autonerves import conf from autofit.non_linear.paths.abstract import AbstractPaths from autofit.mapper.prior_model.abstract import AbstractPriorModel diff --git a/autofit/non_linear/fitness.py b/autofit/non_linear/fitness.py index 8962ebdb8..af2cd53bd 100644 --- a/autofit/non_linear/fitness.py +++ b/autofit/non_linear/fitness.py @@ -7,8 +7,8 @@ from timeout_decorator import timeout from typing import Optional -from autoconf import conf -from autoconf import cached_property +from autonerves import conf +from autonerves import cached_property from autofit import exc diff --git a/autofit/non_linear/grid/grid_search/__init__.py b/autofit/non_linear/grid/grid_search/__init__.py index b28567410..443703449 100644 --- a/autofit/non_linear/grid/grid_search/__init__.py +++ b/autofit/non_linear/grid/grid_search/__init__.py @@ -4,7 +4,7 @@ from pathlib import Path from typing import List, Tuple, Union, Type, Optional, Dict -from autoconf.dictable import to_dict +from autonerves.dictable import to_dict from autofit import exc from autofit.mapper import prior as p from autofit.non_linear.parallel import Process diff --git a/autofit/non_linear/grid/sensitivity/__init__.py b/autofit/non_linear/grid/sensitivity/__init__.py index 8d38fc216..e2509525b 100644 --- a/autofit/non_linear/grid/sensitivity/__init__.py +++ b/autofit/non_linear/grid/sensitivity/__init__.py @@ -5,8 +5,8 @@ from pathlib import Path from typing import List, Generator, Callable, ClassVar, Optional, Union, Tuple -from autoconf import cached_property -from autoconf.dictable import to_dict +from autonerves import cached_property +from autonerves.dictable import to_dict from autofit.mapper.model import ModelInstance from autofit.mapper.prior_model.abstract import AbstractPriorModel from autofit.non_linear.grid.grid_search import make_lists, Sequential diff --git a/autofit/non_linear/parallel/sneaky.py b/autofit/non_linear/parallel/sneaky.py index 42c43a50d..ad9682126 100644 --- a/autofit/non_linear/parallel/sneaky.py +++ b/autofit/non_linear/parallel/sneaky.py @@ -5,7 +5,7 @@ import os from typing import Iterable, Optional, Callable -from autoconf import conf +from autonerves import conf from autofit.non_linear.paths.abstract import AbstractPaths from .process import AbstractJob, Process, StopCommand diff --git a/autofit/non_linear/paths/abstract.py b/autofit/non_linear/paths/abstract.py index 0485535f7..2be31f8ef 100644 --- a/autofit/non_linear/paths/abstract.py +++ b/autofit/non_linear/paths/abstract.py @@ -10,8 +10,8 @@ import numpy as np -from autoconf import conf -from autoconf.test_mode import is_test_mode +from autonerves import conf +from autonerves.test_mode import is_test_mode from autofit.mapper.identifier import Identifier, IdentifierField from autofit.non_linear.samples.summary import SamplesSummary @@ -55,7 +55,7 @@ def __init__( The output path within which the *Paths* objects path structure is contained is set via PyAutoConf, using the command: - from autoconf import conf + from autonerves import conf conf.instance = conf.Config(output_path="path/to/output") If we assume all the input strings above are used with the following example names: diff --git a/autofit/non_linear/paths/database.py b/autofit/non_linear/paths/database.py index 929e25d07..451e7e90b 100644 --- a/autofit/non_linear/paths/database.py +++ b/autofit/non_linear/paths/database.py @@ -1,13 +1,13 @@ import shutil from typing import Optional, Union -from autoconf.output import conditional_output, should_output +from autonerves.output import conditional_output, should_output from autofit.database.sqlalchemy_ import sa from .abstract import AbstractPaths import numpy as np from autofit.database.model import Fit -from autoconf.dictable import to_dict, from_dict +from autonerves.dictable import to_dict, from_dict from autofit.database.aggregator.info import Info from autofit.non_linear.samples.summary import SamplesSummary diff --git a/autofit/non_linear/paths/directory.py b/autofit/non_linear/paths/directory.py index c55790924..60497f7ee 100644 --- a/autofit/non_linear/paths/directory.py +++ b/autofit/non_linear/paths/directory.py @@ -8,10 +8,10 @@ from typing import Optional, Union, cast, Type import logging -from autoconf import conf -from autoconf.class_path import get_class -from autoconf.dictable import to_dict, from_dict -from autoconf.output import conditional_output, should_output +from autonerves import conf +from autonerves.class_path import get_class +from autonerves.dictable import to_dict, from_dict +from autonerves.output import conditional_output, should_output from autofit.text import formatter from autofit.tools.util import open_ from autofit.non_linear.samples.samples import Samples diff --git a/autofit/non_linear/plot/nest_plotters.py b/autofit/non_linear/plot/nest_plotters.py index d3c158d4e..55dfe83a8 100644 --- a/autofit/non_linear/plot/nest_plotters.py +++ b/autofit/non_linear/plot/nest_plotters.py @@ -1,7 +1,7 @@ import numpy as np import warnings -from autoconf import conf +from autonerves import conf from autofit.non_linear.plot.plot_util import ( skip_in_test_mode, diff --git a/autofit/non_linear/plot/samples_plotters.py b/autofit/non_linear/plot/samples_plotters.py index df8b5356b..c4fd4d00a 100644 --- a/autofit/non_linear/plot/samples_plotters.py +++ b/autofit/non_linear/plot/samples_plotters.py @@ -2,7 +2,7 @@ import numpy as np -from autoconf import conf +from autonerves import conf from autofit.non_linear.plot.plot_util import skip_in_test_mode, output_figure diff --git a/autofit/non_linear/samples/efficient.py b/autofit/non_linear/samples/efficient.py index ecb40334d..a278ff127 100644 --- a/autofit/non_linear/samples/efficient.py +++ b/autofit/non_linear/samples/efficient.py @@ -2,7 +2,7 @@ import numpy as np -from autoconf.class_path import get_class +from autonerves.class_path import get_class from .sample import Sample from .samples import Samples from .pdf import SamplesPDF diff --git a/autofit/non_linear/samples/pdf.py b/autofit/non_linear/samples/pdf.py index 3ea842f33..5ff9b11a1 100644 --- a/autofit/non_linear/samples/pdf.py +++ b/autofit/non_linear/samples/pdf.py @@ -5,8 +5,8 @@ import numpy as np -from autoconf import conf -from autoconf.output import should_output +from autonerves import conf +from autonerves.output import should_output from autofit.mapper.model import ModelInstance from autofit.mapper.prior_model.abstract import AbstractPriorModel from autofit.non_linear.samples.sample import Sample, load_from_table diff --git a/autofit/non_linear/samples/sample.py b/autofit/non_linear/samples/sample.py index 1e40d991f..64798d761 100644 --- a/autofit/non_linear/samples/sample.py +++ b/autofit/non_linear/samples/sample.py @@ -4,7 +4,7 @@ from pathlib import Path from typing import List, Tuple, Union -from autoconf.class_path import get_class_path +from autonerves.class_path import get_class_path from autofit.mapper.prior_model.abstract import AbstractPriorModel from autofit.tools.util import split_paths diff --git a/autofit/non_linear/samples/samples.py b/autofit/non_linear/samples/samples.py index c39d7f5a4..f44db636b 100644 --- a/autofit/non_linear/samples/samples.py +++ b/autofit/non_linear/samples/samples.py @@ -9,8 +9,8 @@ import numpy as np from pathlib import Path -from autoconf import conf -from autoconf.class_path import get_class_path +from autonerves import conf +from autonerves.class_path import get_class_path from autofit import exc from autofit.mapper.model import ModelInstance from autofit.non_linear.test_mode import skip_checks diff --git a/autofit/non_linear/search/abstract_search.py b/autofit/non_linear/search/abstract_search.py index 63ed2190a..933bbacd1 100644 --- a/autofit/non_linear/search/abstract_search.py +++ b/autofit/non_linear/search/abstract_search.py @@ -18,9 +18,9 @@ if TYPE_CHECKING: from autofit.non_linear.result import Result -from autoconf import conf +from autonerves import conf -from autoconf.output import should_output +from autonerves.output import should_output from autofit import exc from autofit.database.sqlalchemy_ import sa diff --git a/autofit/non_linear/search/mcmc/abstract_mcmc.py b/autofit/non_linear/search/mcmc/abstract_mcmc.py index 75d962db9..18b788a64 100644 --- a/autofit/non_linear/search/mcmc/abstract_mcmc.py +++ b/autofit/non_linear/search/mcmc/abstract_mcmc.py @@ -1,6 +1,6 @@ from typing import Optional -from autoconf import conf +from autonerves import conf from autofit.database.sqlalchemy_ import sa from autofit.non_linear.search.abstract_search import NonLinearSearch from autofit.non_linear.initializer import Initializer, InitializerBall diff --git a/autofit/non_linear/search/mcmc/blackjax/nuts/search.py b/autofit/non_linear/search/mcmc/blackjax/nuts/search.py index 986d99b26..3f1bfb729 100644 --- a/autofit/non_linear/search/mcmc/blackjax/nuts/search.py +++ b/autofit/non_linear/search/mcmc/blackjax/nuts/search.py @@ -6,7 +6,7 @@ import numpy as np -from autoconf import conf +from autonerves import conf from autofit.database.sqlalchemy_ import sa from autofit.mapper.prior_model.abstract import AbstractPriorModel @@ -113,7 +113,7 @@ def __init__( after warmup. iterations_per_full_update Sample chunk size between ``perform_update`` calls. Inherited - from the autoconf config when ``None``. + from the autonerves config when ``None``. number_of_cores Currently unused — single chain runs on a single device. Kept for API parity with the other MCMC searches. diff --git a/autofit/non_linear/search/mcmc/emcee/search.py b/autofit/non_linear/search/mcmc/emcee/search.py index fc8118881..43a455c63 100644 --- a/autofit/non_linear/search/mcmc/emcee/search.py +++ b/autofit/non_linear/search/mcmc/emcee/search.py @@ -5,7 +5,7 @@ import numpy as np -from autoconf import conf +from autonerves import conf from autofit.database.sqlalchemy_ import sa from autofit.mapper.model_mapper import ModelMapper diff --git a/autofit/non_linear/search/mle/abstract_mle.py b/autofit/non_linear/search/mle/abstract_mle.py index 6de473139..32f61e133 100644 --- a/autofit/non_linear/search/mle/abstract_mle.py +++ b/autofit/non_linear/search/mle/abstract_mle.py @@ -1,6 +1,6 @@ from abc import ABC -from autoconf import conf +from autonerves import conf from autofit.non_linear.search.abstract_search import NonLinearSearch from autofit.non_linear.initializer import InitializerBall from autofit.non_linear.plot import subplot_parameters, log_likelihood_vs_iteration diff --git a/autofit/non_linear/search/nest/abstract_nest.py b/autofit/non_linear/search/nest/abstract_nest.py index ea113e0c7..81057743f 100644 --- a/autofit/non_linear/search/nest/abstract_nest.py +++ b/autofit/non_linear/search/nest/abstract_nest.py @@ -2,7 +2,7 @@ from typing import Optional import warnings -from autoconf import conf +from autonerves import conf from autofit.database.sqlalchemy_ import sa from autofit.non_linear.search.abstract_search import NonLinearSearch from autofit.non_linear.initializer import ( diff --git a/autofit/non_linear/search/updater.py b/autofit/non_linear/search/updater.py index 217eb3ee7..b79ce4e9a 100644 --- a/autofit/non_linear/search/updater.py +++ b/autofit/non_linear/search/updater.py @@ -7,8 +7,8 @@ import numpy as np import psutil -from autoconf import conf -from autoconf.test_mode import skip_latents +from autonerves import conf +from autonerves.test_mode import skip_latents from autofit import exc from autofit.non_linear.paths.database import DatabasePaths diff --git a/autofit/non_linear/test_mode.py b/autofit/non_linear/test_mode.py index ffd4caa13..f3b2fd208 100644 --- a/autofit/non_linear/test_mode.py +++ b/autofit/non_linear/test_mode.py @@ -1,3 +1,3 @@ -from autoconf.test_mode import test_mode_level, is_test_mode, skip_fit_output, skip_visualization, skip_checks, test_mode_samples +from autonerves.test_mode import test_mode_level, is_test_mode, skip_fit_output, skip_visualization, skip_checks, test_mode_samples __all__ = ["test_mode_level", "is_test_mode", "skip_fit_output", "skip_visualization", "skip_checks", "test_mode_samples"] diff --git a/autofit/text/formatter.py b/autofit/text/formatter.py index 751ebff23..dfeb71c93 100644 --- a/autofit/text/formatter.py +++ b/autofit/text/formatter.py @@ -4,7 +4,7 @@ from pathlib import Path -from autoconf import conf +from autonerves import conf from autofit.tools.util import open_ logger = logging.getLogger(__name__) diff --git a/autofit/text/text_util.py b/autofit/text/text_util.py index c0893dcbf..fb6e33a34 100644 --- a/autofit/text/text_util.py +++ b/autofit/text/text_util.py @@ -1,7 +1,7 @@ import datetime as dt from typing import List -from autoconf import conf +from autonerves import conf from autofit.mapper.prior_model.representative import find_groups from autofit.text import formatter as frm, samples_text from autofit.tools.util import info_whitespace diff --git a/autofit/tools/util.py b/autofit/tools/util.py index 44991bb87..f9efa8c60 100644 --- a/autofit/tools/util.py +++ b/autofit/tools/util.py @@ -10,7 +10,7 @@ import numpy as np -from autoconf import conf +from autonerves import conf def split_paths(func): diff --git a/autofit/visualise.py b/autofit/visualise.py index f778cdc51..b0d3945e1 100644 --- a/autofit/visualise.py +++ b/autofit/visualise.py @@ -1,6 +1,6 @@ from typing import Dict, List -from autoconf import cached_property +from autonerves import cached_property from autofit.mapper.prior_model.abstract import AbstractPriorModel from autofit.mapper.prior.uniform import UniformPrior diff --git a/docs/cookbooks/result.md b/docs/cookbooks/result.md index 66c1c3ee7..449f4d999 100644 --- a/docs/cookbooks/result.md +++ b/docs/cookbooks/result.md @@ -536,7 +536,7 @@ class Analysis(af.Analysis): The paths object which manages all paths, e.g. where the non-linear search outputs are stored, visualization, and the pickled objects used by the aggregator output by this function. """ - from autoconf.dictable import to_dict + from autonerves.dictable import to_dict paths.save_json(name="data", object_dict=to_dict(self.data)) paths.save_json(name="noise_map", object_dict=to_dict(self.noise_map)) diff --git a/docs/features/interpolate.md b/docs/features/interpolate.md index 51164784e..8a2200cee 100644 --- a/docs/features/interpolate.md +++ b/docs/features/interpolate.md @@ -171,7 +171,7 @@ The interpolator and model can be serialized to a .json file using **PyAutoConf* This means an interpolator can easily be loaded into other scripts. ```python -from autoconf.dictable import output_to_json, from_json +from autonerves.dictable import output_to_json, from_json json_file = path.join(dataset_prefix_path, "interpolator.json") diff --git a/docs/general/configs.md b/docs/general/configs.md index 2095367c3..3024d8bfd 100644 --- a/docs/general/configs.md +++ b/docs/general/configs.md @@ -15,7 +15,7 @@ The configuration path can also be set manually in a script using the project ** command (the path to the `output` folder where the results of a non-linear search are stored is also set below): ```bash -from autoconf import conf +from autonerves import conf conf.instance.push( new_path="path/to/config", diff --git a/eden.yaml b/eden.yaml index 4d9ecddee..62675118b 100644 --- a/eden.yaml +++ b/eden.yaml @@ -1,6 +1,6 @@ name: autofit eden_prefix: VIS_CTI eden_dependencies: - - name: autoconf + - name: autonerves should_rename_modules: false should_remove_type_annotation: true diff --git a/pyproject.toml b/pyproject.toml index 5cc136571..917516a6b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ classifiers = [ ] keywords = ["cli"] dependencies = [ - "autoconf", + "autonerves", "array_api_compat", "anesthetic>=2.9.0", "corner==2.2.2", @@ -66,7 +66,7 @@ local_scheme = "no-local-version" [project.optional-dependencies] -jax = ["autoconf[jax]", "optax"] +jax = ["autonerves[jax]", "optax"] optional = [ "autofit[jax]", "astropy>=5.0", diff --git a/test_autofit/aggregator/test_reference.py b/test_autofit/aggregator/test_reference.py index 6d86443b6..118a75729 100644 --- a/test_autofit/aggregator/test_reference.py +++ b/test_autofit/aggregator/test_reference.py @@ -2,7 +2,7 @@ import pytest -from autoconf.class_path import get_class_path +from autonerves.class_path import get_class_path from autofit.aggregator import Aggregator from pathlib import Path import autofit as af diff --git a/test_autofit/analysis/test_latent_variables.py b/test_autofit/analysis/test_latent_variables.py index ce53be7ce..f1d189aee 100644 --- a/test_autofit/analysis/test_latent_variables.py +++ b/test_autofit/analysis/test_latent_variables.py @@ -4,7 +4,7 @@ import pytest import autofit as af -from autoconf.conf import with_config +from autonerves.conf import with_config from autofit import DirectoryPaths, SamplesPDF # This test drives the `use_jax=True` path, which needs jax installed (it ships diff --git a/test_autofit/conftest.py b/test_autofit/conftest.py index 8c972f553..4e0a49e65 100644 --- a/test_autofit/conftest.py +++ b/test_autofit/conftest.py @@ -8,7 +8,7 @@ import pytest from matplotlib import pyplot -from autoconf import conf +from autonerves import conf from autofit import database as db from autofit import fixtures from autofit.database.model import sa diff --git a/test_autofit/database/migration/test_steps_match.py b/test_autofit/database/migration/test_steps_match.py index 4669a786f..e9343cae6 100644 --- a/test_autofit/database/migration/test_steps_match.py +++ b/test_autofit/database/migration/test_steps_match.py @@ -5,7 +5,7 @@ import pytest import autofit as af -from autoconf.conf import output_path_for_test +from autonerves.conf import output_path_for_test from autofit.database import Fit from autofit.database.sqlalchemy_ import sa diff --git a/test_autofit/database/paths/test_paths.py b/test_autofit/database/paths/test_paths.py index 83851e72d..3789b0797 100644 --- a/test_autofit/database/paths/test_paths.py +++ b/test_autofit/database/paths/test_paths.py @@ -3,7 +3,7 @@ import pytest -from autoconf.conf import output_path_for_test +from autonerves.conf import output_path_for_test import autofit as af from autofit import database as m diff --git a/test_autofit/graphical/gaussian/test_optimizer.py b/test_autofit/graphical/gaussian/test_optimizer.py index e8e296d29..bc129e27a 100644 --- a/test_autofit/graphical/gaussian/test_optimizer.py +++ b/test_autofit/graphical/gaussian/test_optimizer.py @@ -2,7 +2,7 @@ import autofit as af import autofit.graphical as g -from autoconf.conf import output_path_for_test +from autonerves.conf import output_path_for_test from autofit.graphical.utils import Status from test_autofit.graphical.gaussian.model import Analysis diff --git a/test_autofit/graphical/info/test_output.py b/test_autofit/graphical/info/test_output.py index c4e36c3de..bb3cff444 100644 --- a/test_autofit/graphical/info/test_output.py +++ b/test_autofit/graphical/info/test_output.py @@ -2,7 +2,7 @@ import autofit as af -from autoconf.conf import with_config +from autonerves.conf import with_config from autofit import graphical as g, DirectoryPaths MAX_STEPS = 2 diff --git a/test_autofit/interpolator/test_interpolator.py b/test_autofit/interpolator/test_interpolator.py index e2b638895..d0c750334 100644 --- a/test_autofit/interpolator/test_interpolator.py +++ b/test_autofit/interpolator/test_interpolator.py @@ -1,7 +1,7 @@ import pytest import autofit as af -from autoconf.dictable import to_dict, from_dict +from autonerves.dictable import to_dict, from_dict def test_trivial(): diff --git a/test_autofit/mapper/model/serialise/test_json.py b/test_autofit/mapper/model/serialise/test_json.py index f8a1bd2bb..a206941c4 100644 --- a/test_autofit/mapper/model/serialise/test_json.py +++ b/test_autofit/mapper/model/serialise/test_json.py @@ -5,7 +5,7 @@ import json import autofit as af -from autoconf.dictable import from_dict +from autonerves.dictable import from_dict @pytest.fixture(name="collection_dict") diff --git a/test_autofit/mapper/model/test_regression.py b/test_autofit/mapper/model/test_regression.py index 15c745d8c..49f2d9928 100644 --- a/test_autofit/mapper/model/test_regression.py +++ b/test_autofit/mapper/model/test_regression.py @@ -3,7 +3,7 @@ import pytest import autofit as af -from autoconf.exc import ConfigException +from autonerves.exc import ConfigException from autofit.example.model import PhysicalNFW from autofit.mapper.mock.mock_model import WithString from autofit.mapper.model_object import Identifier diff --git a/test_autofit/mapper/test_array.py b/test_autofit/mapper/test_array.py index 3a3084f86..9a4a25820 100644 --- a/test_autofit/mapper/test_array.py +++ b/test_autofit/mapper/test_array.py @@ -2,7 +2,7 @@ import numpy as np import autofit as af -from autoconf.dictable import to_dict +from autonerves.dictable import to_dict @pytest.fixture diff --git a/test_autofit/mapper/test_parameterization.py b/test_autofit/mapper/test_parameterization.py index a8e845125..673300f5e 100644 --- a/test_autofit/mapper/test_parameterization.py +++ b/test_autofit/mapper/test_parameterization.py @@ -179,7 +179,7 @@ def test_parameterization_cache_does_not_leak_into_instance(): def test_cached_property_names_classmethod_walks_mro(): """The ``_cached_property_names`` classmethod on AbstractModel exposes the - autoconf ``cached_property_names`` MRO walker. It must pick up + autonerves ``cached_property_names`` MRO walker. It must pick up descriptors declared on any ancestor and memoise the result on the class.""" import functools diff --git a/test_autofit/non_linear/grid/test_paths/test_indicators.py b/test_autofit/non_linear/grid/test_paths/test_indicators.py index c9b9696c8..928d2200e 100644 --- a/test_autofit/non_linear/grid/test_paths/test_indicators.py +++ b/test_autofit/non_linear/grid/test_paths/test_indicators.py @@ -3,7 +3,7 @@ import pytest import autofit as af -from autoconf.conf import output_path_for_test +from autonerves.conf import output_path_for_test from autofit.database.aggregator.scrape import Scraper output_directory = Path(__file__).parent / "output" diff --git a/test_autofit/non_linear/grid/test_sensitivity/test_run.py b/test_autofit/non_linear/grid/test_sensitivity/test_run.py index c7bd0caa6..c6bbe007e 100644 --- a/test_autofit/non_linear/grid/test_sensitivity/test_run.py +++ b/test_autofit/non_linear/grid/test_sensitivity/test_run.py @@ -1,4 +1,4 @@ -# from autoconf.conf import with_config +# from autonerves.conf import with_config # # # @with_config("general", "model", value=True) diff --git a/test_autofit/non_linear/paths/test_paths.py b/test_autofit/non_linear/paths/test_paths.py index 50635bf20..1837ae356 100644 --- a/test_autofit/non_linear/paths/test_paths.py +++ b/test_autofit/non_linear/paths/test_paths.py @@ -4,7 +4,7 @@ import pytest import autofit as af -from autoconf.conf import output_path_for_test +from autonerves.conf import output_path_for_test from autofit.non_linear.paths.null import NullPaths diff --git a/test_autofit/non_linear/paths/test_serialise_paths.py b/test_autofit/non_linear/paths/test_serialise_paths.py index d8905be7f..77eb8c798 100644 --- a/test_autofit/non_linear/paths/test_serialise_paths.py +++ b/test_autofit/non_linear/paths/test_serialise_paths.py @@ -1,7 +1,7 @@ from pathlib import Path import autofit as af -from autoconf.dictable import to_dict, from_dict +from autonerves.dictable import to_dict, from_dict def test_path_prefix(): diff --git a/test_autofit/non_linear/samples/test_output_type.py b/test_autofit/non_linear/samples/test_output_type.py index 2e9fa5992..74ab390c5 100644 --- a/test_autofit/non_linear/samples/test_output_type.py +++ b/test_autofit/non_linear/samples/test_output_type.py @@ -1,7 +1,7 @@ import pytest import autofit as af -from autoconf.conf import with_config +from autonerves.conf import with_config from autofit import SamplesNest, SearchOutput from autofit.non_linear.samples.efficient import EfficientSamples diff --git a/test_autofit/non_linear/samples/test_pdf.py b/test_autofit/non_linear/samples/test_pdf.py index 355574c46..38d6e25a9 100644 --- a/test_autofit/non_linear/samples/test_pdf.py +++ b/test_autofit/non_linear/samples/test_pdf.py @@ -3,7 +3,7 @@ import numpy as np import pytest -from autoconf.conf import with_config +from autonerves.conf import with_config import autofit as af diff --git a/test_autofit/non_linear/search/mle/test_multi_start_gradient.py b/test_autofit/non_linear/search/mle/test_multi_start_gradient.py index b4a37325a..a0c92a685 100644 --- a/test_autofit/non_linear/search/mle/test_multi_start_gradient.py +++ b/test_autofit/non_linear/search/mle/test_multi_start_gradient.py @@ -3,7 +3,7 @@ import autofit as af from autofit import example -from autoconf.dictable import from_dict, to_dict +from autonerves.dictable import from_dict, to_dict # The MultiStart gradient searches are JAX-native at fit time, but their # plumbing (config knobs, dict round-trip, and the internal-results -> Samples diff --git a/test_autofit/non_linear/search/optimize/test_drawer.py b/test_autofit/non_linear/search/optimize/test_drawer.py index 3ee000877..e4c40f616 100644 --- a/test_autofit/non_linear/search/optimize/test_drawer.py +++ b/test_autofit/non_linear/search/optimize/test_drawer.py @@ -1,7 +1,7 @@ import pytest import autofit as af -from autoconf.dictable import from_dict, to_dict +from autonerves.dictable import from_dict, to_dict pytestmark = pytest.mark.filterwarnings("ignore::FutureWarning") diff --git a/test_autofit/non_linear/search/test_abstract_search.py b/test_autofit/non_linear/search/test_abstract_search.py index d4259455c..e9fb7af4e 100644 --- a/test_autofit/non_linear/search/test_abstract_search.py +++ b/test_autofit/non_linear/search/test_abstract_search.py @@ -4,7 +4,7 @@ import pytest import autofit as af -from autoconf import conf +from autonerves import conf pytestmark = pytest.mark.filterwarnings("ignore::FutureWarning") diff --git a/test_autofit/non_linear/search/test_logging.py b/test_autofit/non_linear/search/test_logging.py index 48667e376..a35b86886 100644 --- a/test_autofit/non_linear/search/test_logging.py +++ b/test_autofit/non_linear/search/test_logging.py @@ -4,7 +4,7 @@ import pytest import autofit as af -from autoconf.conf import with_config +from autonerves.conf import with_config class Analysis(af.mock.MockAnalysis): diff --git a/test_autofit/non_linear/search/test_sneaky_map.py b/test_autofit/non_linear/search/test_sneaky_map.py index b204663a9..886568ad7 100644 --- a/test_autofit/non_linear/search/test_sneaky_map.py +++ b/test_autofit/non_linear/search/test_sneaky_map.py @@ -7,7 +7,7 @@ from emcee.ensemble import _FunctionWrapper import autofit as af -from autoconf.conf import output_path_for_test +from autonerves.conf import output_path_for_test from autofit.non_linear import fitness as f from autofit.non_linear.mock.mock_analysis import MockAnalysis from autofit.non_linear.parallel import SneakyPool, SneakyJob diff --git a/test_autofit/non_linear/search/test_updater.py b/test_autofit/non_linear/search/test_updater.py index fab31aa8c..79003f1eb 100644 --- a/test_autofit/non_linear/search/test_updater.py +++ b/test_autofit/non_linear/search/test_updater.py @@ -1,7 +1,7 @@ import logging from unittest.mock import MagicMock -from autoconf import conf +from autonerves import conf from autofit.non_linear.search.updater import SearchUpdater diff --git a/test_autofit/non_linear/test_dict.py b/test_autofit/non_linear/test_dict.py index 62f56f6e8..eff43521b 100644 --- a/test_autofit/non_linear/test_dict.py +++ b/test_autofit/non_linear/test_dict.py @@ -1,7 +1,7 @@ import pytest import autofit as af -from autoconf.dictable import to_dict, from_dict +from autonerves.dictable import to_dict, from_dict @pytest.fixture(name="dynesty_dict") diff --git a/test_autofit/serialise/test_regression.py b/test_autofit/serialise/test_regression.py index 4f7e72d10..2912acf33 100644 --- a/test_autofit/serialise/test_regression.py +++ b/test_autofit/serialise/test_regression.py @@ -2,7 +2,7 @@ import pytest -from autoconf.dictable import to_dict, from_dict +from autonerves.dictable import to_dict, from_dict from autofit.mapper.mock.mock_model import MockClassx2Tuple import autofit as af diff --git a/test_autofit/serialise/test_samples.py b/test_autofit/serialise/test_samples.py index 59e263b8b..40174e911 100644 --- a/test_autofit/serialise/test_samples.py +++ b/test_autofit/serialise/test_samples.py @@ -2,7 +2,7 @@ import pytest from autofit.non_linear.samples.summary import SamplesSummary -from autoconf.dictable import from_dict, to_dict +from autonerves.dictable import from_dict, to_dict @pytest.fixture(name="model") From cd09aa9dea17453502cc57d612d193dc0d59076a Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 19 Jul 2026 11:54:33 +0000 Subject: [PATCH 2/2] ci: re-trigger after lib-tests head_ref fix