Skip to content

Export util.dataset (autoarray dataset_util) as ac.util.dataset - #106

Merged
Jammy2211 merged 1 commit into
mainfrom
claude/pyautomind-simple-issue-x7gu1u
Aug 7, 2026
Merged

Export util.dataset (autoarray dataset_util) as ac.util.dataset#106
Jammy2211 merged 1 commit into
mainfrom
claude/pyautomind-simple-issue-x7gu1u

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Adds the one-line from autoarray.util import dataset_util as dataset export to autocti/util/__init__.py, mirroring autolens/util/__init__.py. This makes ac.util.dataset.should_simulate available, which the autocti_workspace auto-simulate guards need to regain PYAUTO_SMALL_DATASETS=1 force-regeneration (the raw if not path.exists(dataset_path): idiom silently loses it).

From PyAutoMind draft/maintenance/pyauto_cti/autocti_util_dataset_export.md (found during dataset-bulk leg 6, autocti_workspace#11).

Verification

  • import autocti as ac; ac.util.dataset.should_simulate resolves to autoarray.util.dataset_util.should_simulate at runtime (Python 3.12, arcticpy 2.6 built from source).
  • Full suite: python -m pytest test_autocti/271 passed, 0 failed, 0 skipped.
  • git diff origin/main is exactly this one line.

Downstream

The companion autocti_workspace PR (same branch name) migrates its 22 raw guards to ac.util.dataset.should_simulate(dataset_path) and is gated on this PR by the library-first merge rule.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Vu1p9rcDQGRrYddB6VWcxN


Generated by Claude Code

autocti/util/__init__.py lacked the 'from autoarray.util import dataset_util
as dataset' alias that autolens/util/__init__.py has, so ac.util.dataset did
not exist. This blocked autocti_workspace's auto-simulate guards from using
should_simulate, losing PYAUTO_SMALL_DATASETS=1 force-regeneration.

From PyAutoMind draft/maintenance/pyauto_cti/autocti_util_dataset_export.md.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vu1p9rcDQGRrYddB6VWcxN
@Jammy2211
Jammy2211 merged commit f40b2f7 into main Aug 7, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the claude/pyautomind-simple-issue-x7gu1u branch August 25, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants