Export util.dataset (autoarray dataset_util) as ac.util.dataset - #106
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the one-line
from autoarray.util import dataset_util as datasetexport toautocti/util/__init__.py, mirroringautolens/util/__init__.py. This makesac.util.dataset.should_simulateavailable, which the autocti_workspace auto-simulate guards need to regainPYAUTO_SMALL_DATASETS=1force-regeneration (the rawif 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_simulateresolves toautoarray.util.dataset_util.should_simulateat runtime (Python 3.12, arcticpy 2.6 built from source).python -m pytest test_autocti/— 271 passed, 0 failed, 0 skipped.git diff origin/mainis 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