Skip to content

fix: drop PYAUTO_SMALL_DATASETS workaround in group simulators#102

Merged
Jammy2211 merged 1 commit intomainfrom
feature/positions-test-mode-fallback
Apr 29, 2026
Merged

fix: drop PYAUTO_SMALL_DATASETS workaround in group simulators#102
Jammy2211 merged 1 commit intomainfrom
feature/positions-test-mode-fallback

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Now that PointSolver.solve short-circuits to a fixed pair of positions when PYAUTO_SMALL_DATASETS=1 (PyAutoLabs/PyAutoLens#479), the three group simulator scripts no longer need to pop the env var around solver.solve and restore it afterward. This PR deletes that workaround.

Refs PyAutoLabs/PyAutoLens#477.

Scripts Changed

  • scripts/group/simulator.py — removed import os, small_datasets = os.environ.pop(...), and the restore block around solver.solve.
  • scripts/group/features/multi_gaussian_expansion/simulator.py — same cleanup.
  • scripts/group/features/no_lens_light/simulator.py — same cleanup.

Net change: -21 lines, no behavior change in production runs (the workaround was only relevant under PYAUTO_SMALL_DATASETS=1, which is now handled inside the solver itself).

Upstream PR

PyAutoLabs/PyAutoLens#479

Test Plan

  • /smoke_test passes for autolens_workspace
  • Library PR #479 merges first (workspace PR is blocked by the library-first merge gate until then)

🤖 Generated with Claude Code

PointSolver.solve now short-circuits to [(1.0, 0.0), (0.0, 1.0)] when
PYAUTO_SMALL_DATASETS=1 (PyAutoLens PR #479), so the env-var pop/restore
dance around solver.solve is no longer needed.

Removes 21 lines across:
  - scripts/group/simulator.py
  - scripts/group/features/multi_gaussian_expansion/simulator.py
  - scripts/group/features/no_lens_light/simulator.py

Refs #477.
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Apr 29, 2026
@Jammy2211 Jammy2211 merged commit ef69bfc into main Apr 29, 2026
1 check passed
@Jammy2211 Jammy2211 deleted the feature/positions-test-mode-fallback branch April 29, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant