Skip to content

docs: mark the 2 data.json auto-simulate guards as intentionally raw - #134

Merged
Jammy2211 merged 1 commit into
mainfrom
claude/file-path-guard-decision-50mwce
Aug 7, 2026
Merged

docs: mark the 2 data.json auto-simulate guards as intentionally raw#134
Jammy2211 merged 1 commit into
mainfrom
claude/file-path-guard-decision-50mwce

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Decision record for the file-path leg of the raw-guard migration (PyAutoLabs/autolens_workspace#475, split from PyAutoLabs/autolens_workspace#354): the 2 data.json auto-simulate guards keep their raw file guard, each now marked with a one-line intentional-raw-guard comment so future migration sweeps don't re-flag them.

Why: the guards check a file (.../dataset_0/data.json), and this workspace has no should_simulate namespace and never sets PYAUTO_SMALL_DATASETS — the recorded leg-3 rejection: adding an af.util.should_simulate plus a new env contract in PyAutoFit would buy zero functional gain.

Scripts touched

  • scripts/features/graphical_models.py
  • scripts/features/shared_analysis_state.py

Comment-only insertions (2 lines per site); no behaviour change.

Notebooks

Regenerated 1:1 for the 2 touched scripts via PyAutoHands (carries the now-canonical setup_notebook activation from PyAutoHands 596967e; the repo-wide sweep of the other notebooks is left to the next wholesale regeneration). Navigator catalogue unchanged.

Validation

  • py_compile 2/2
  • Neither script is in smoke_tests.txt; branch CI exercises the runtime stack.

Companion PR: PyAutoLabs/autolens_workspace#477 (the 7 positions.json guards). No library dependency — no pending-release gate needed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EGua3k2WDPVrtvj4MTMUoT


Generated by Claude Code

Decision record for the file-path leg of the raw-guard migration
(autolens_workspace#475, split from autolens_workspace#354): these guards
check a file (dataset_0/data.json), and this workspace has no
should_simulate namespace and never sets PYAUTO_SMALL_DATASETS (the
recorded leg-3 rejection — adding an af.util.should_simulate plus a new
env contract in PyAutoFit would buy zero functional gain). A one-line
comment at each site records this so future sweeps don't re-flag them.

Notebooks regenerated for the 2 touched scripts (carries the now-canonical
setup_notebook activation from PyAutoHands 596967e).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EGua3k2WDPVrtvj4MTMUoT
@Jammy2211
Jammy2211 merged commit f909cb8 into main Aug 7, 2026
6 checks passed
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