Skip to content

Commit b4b6ec1

Browse files
Jammy2211claude
andauthored
refactor: import config surface from autolens instead of autoconf (#34)
Rewrite `from autoconf[.sub] import X` to `from autolens import X` across scripts, notebooks and markdown, so workspace code imports the config/serialization surface (conf, jax_wrapper, with_test_mode_segment, dictable/fitsable helpers, etc.) through the science library rather than depending on `autoconf` directly. The Colab bootstrap `from autoconf import setup_colab` is intentionally left on autoconf: it runs before the library is pip-installed on Colab. Notebooks were updated by the same deterministic line-level transform as the scripts (the catalogue files embed no import lines and are unaffected). Claude-Session: https://claude.ai/code/session_013ciVftxvYpefh59wSkR7jN Co-authored-by: Claude <noreply@anthropic.com>
1 parent 13355b3 commit b4b6ec1

81 files changed

Lines changed: 159 additions & 159 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

markdown/chapter_1_introduction/tutorial_0_visualization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ __Contents__
2020

2121
```python
2222

23-
from autoconf import jax_wrapper # Sets JAX environment before other imports
23+
from autolens import jax_wrapper # Sets JAX environment before other imports
2424

25-
from autoconf import setup_notebook; setup_notebook()
25+
from autolens import setup_notebook; setup_notebook()
2626
```
2727

2828
Working Directory has been set to `HowToLens`

markdown/chapter_1_introduction/tutorial_1_grids_and_galaxies.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ __Contents__
6464

6565
```python
6666

67-
from autoconf import jax_wrapper # Sets JAX environment before other imports
67+
from autolens import jax_wrapper # Sets JAX environment before other imports
6868

69-
from autoconf import setup_notebook; setup_notebook()
69+
from autolens import setup_notebook; setup_notebook()
7070

7171
import matplotlib.pyplot as plt
7272
import numpy as np

markdown/chapter_1_introduction/tutorial_2_ray_tracing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ __Contents__
7272

7373
```python
7474

75-
from autoconf import jax_wrapper # Sets JAX environment before other imports
75+
from autolens import jax_wrapper # Sets JAX environment before other imports
7676

77-
from autoconf import setup_notebook; setup_notebook()
77+
from autolens import setup_notebook; setup_notebook()
7878

7979
import matplotlib.pyplot as plt
8080
import autolens as al

markdown/chapter_1_introduction/tutorial_3_more_ray_tracing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ __Contents__
4040

4141
```python
4242

43-
from autoconf import jax_wrapper # Sets JAX environment before other imports
43+
from autolens import jax_wrapper # Sets JAX environment before other imports
4444

45-
from autoconf import setup_notebook; setup_notebook()
45+
from autolens import setup_notebook; setup_notebook()
4646

4747
import numpy as np
4848
import autolens as al

markdown/chapter_1_introduction/tutorial_4_point_sources.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ __Contents__
1919

2020
```python
2121

22-
from autoconf import jax_wrapper # Sets JAX environment before other imports
22+
from autolens import jax_wrapper # Sets JAX environment before other imports
2323

24-
from autoconf import setup_notebook; setup_notebook()
24+
from autolens import setup_notebook; setup_notebook()
2525

2626
import autolens as al
2727
import autolens.plot as aplt

markdown/chapter_1_introduction/tutorial_5_lensing_formalism.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ __Contents__
2020

2121
```python
2222

23-
from autoconf import jax_wrapper # Sets JAX environment before other imports
23+
from autolens import jax_wrapper # Sets JAX environment before other imports
2424

25-
from autoconf import setup_notebook; setup_notebook()
25+
from autolens import setup_notebook; setup_notebook()
2626

2727
import autolens as al
2828
import autolens.plot as aplt

markdown/chapter_1_introduction/tutorial_6_data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ __Contents__
4242

4343
```python
4444

45-
from autoconf import jax_wrapper # Sets JAX environment before other imports
45+
from autolens import jax_wrapper # Sets JAX environment before other imports
4646

47-
from autoconf import setup_notebook; setup_notebook()
47+
from autolens import setup_notebook; setup_notebook()
4848

4949
import numpy as np
5050
from pathlib import Path

markdown/chapter_1_introduction/tutorial_7_fitting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ __Contents__
4646

4747
```python
4848

49-
from autoconf import setup_notebook; setup_notebook()
49+
from autolens import setup_notebook; setup_notebook()
5050

5151
import numpy as np
5252
from pathlib import Path

markdown/chapter_1_introduction/tutorial_8_summary.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ __Contents__
3131

3232
```python
3333

34-
from autoconf import jax_wrapper # Sets JAX environment before other imports
34+
from autolens import jax_wrapper # Sets JAX environment before other imports
3535

36-
from autoconf import setup_notebook; setup_notebook()
36+
from autolens import setup_notebook; setup_notebook()
3737

3838
from pathlib import Path
3939
import autolens as al

notebooks/chapter_1_introduction/tutorial_0_visualization.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
"metadata": {},
6363
"source": [
6464
"\n",
65-
"from autoconf import jax_wrapper # Sets JAX environment before other imports\n",
65+
"from autolens import jax_wrapper # Sets JAX environment before other imports\n",
6666
"\n",
67-
"from autoconf import setup_notebook; setup_notebook()"
67+
"from autolens import setup_notebook; setup_notebook()"
6868
],
6969
"outputs": [],
7070
"execution_count": null

0 commit comments

Comments
 (0)