Repository navigation
refactor: auto-simulate datasets with ac.util.dataset.simulate_if_needed - #39
Merged
Merged
Conversation
Replace the 8-line should_simulate + subprocess.run block with the one-line ac.util.dataset.simulate_if_needed(dataset_path, simulator=...) helper (PyAutoArray#670; ac.util.dataset re-exports autoarray's dataset_util): 43 blocks in 39 scripts. Mechanical rewrite: dataset and simulator paths kept exactly; CRLF line endings preserved. Notebook regeneration is blocked for this workspace (autocti is not in COLAB_PROJECTS, see AGENTS.md), so notebooks are not touched. check_dataset_allowlist reports the same guarded call-site count before and after (43). Requires the PyAutoArray release that carries #670. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8NyQo2s3YUk8eUrrB3
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.
Part of PyAutoLabs/autogalaxy_workspace#268 (phase 3 of PyAutoLabs/PyAutoArray#669).
Summary
Replaces the 8-line
should_simulate+subprocess.runauto-simulate block with the one-lineac.util.dataset.simulate_if_needed(dataset_path, simulator=...)in 39 scripts (43 blocks).autoctiis not inCOLAB_PROJECTS(see AGENTS.md). The committed notebooks don't contain the old block either.Testing
scripts/check_sizes.shreports no shrinkage.check_dataset_allowlist: 43 guarded call sites before and 43 after; the leg-2 capped-deletion check passes.autoctifails to build in the cloud session, so no script was executed. The helper itself is tested in PyAutoArray and smoke-run in the lens/galaxy workspaces.Merge mode: human
/prm, after the release.Generated by Claude Code