Skip to content

Commit cfbb6ca

Browse files
committed
refactor: re-export autoconf config surface from library __init__
Expose the autoconf (Nerves) configuration/serialization surface as a deliberate public API of each science library, so workspaces and downstream code can `from autolens import conf` (and jax_wrapper, setup_colab, setup_notebook, fitsable, with_config, dictable/fitsable/test_mode helpers) rather than importing the `autoconf` package directly. This keeps the config layer an implementation detail behind the library namespace. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013ciVftxvYpefh59wSkR7jN
1 parent a240782 commit cfbb6ca

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

autoarray/__init__.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,34 @@
107107
conf.instance.register(__file__)
108108

109109
__version__ = "2026.7.9.1"
110+
111+
# ---------------------------------------------------------------------------
112+
# Public re-export of the autoconf configuration / serialization surface.
113+
#
114+
# Workspaces, tutorials and downstream code import these names from the science
115+
# library (e.g. ``from autolens import conf``) rather than depending on the
116+
# ``autoconf`` package directly, so the underlying configuration / serialization
117+
# layer stays an implementation detail of the library.
118+
# ---------------------------------------------------------------------------
119+
from autoconf import conf
120+
from autoconf import jax_wrapper
121+
from autoconf import fitsable
122+
from autoconf import setup_colab
123+
from autoconf import setup_notebook
124+
from autoconf.conf import with_config
125+
from autoconf.dictable import from_dict, from_json, to_dict, output_to_json
126+
from autoconf.fitsable import (
127+
output_to_fits,
128+
hdu_list_for_output_from,
129+
ndarray_via_fits_from,
130+
ndarray_via_hdu_from,
131+
header_obj_from,
132+
)
133+
from autoconf.test_mode import (
134+
with_test_mode_segment,
135+
skip_visualization,
136+
skip_fit_output,
137+
skip_checks,
138+
is_test_mode,
139+
test_mode_level,
140+
)

0 commit comments

Comments
 (0)