feat: PYAUTO_WORKSPACE_SMALL_DATASETS env var for fast smoke tests#253
Merged
feat: PYAUTO_WORKSPACE_SMALL_DATASETS env var for fast smoke tests#253
Conversation
When PYAUTO_WORKSPACE_SMALL_DATASETS=1, Grid2D.uniform() and Mask2D.circular() override shape_native to (15, 15) and pixel_scales to 0.6 for any grid larger than 15x15. This makes workspace smoke tests dramatically faster by reducing all downstream computations (DFT, ray-tracing, plotting) without any changes to workspace scripts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Apr 6, 2026
Collaborator
Author
|
Workspace PRs: PyAutoLabs/autolens_workspace#35, PyAutoLabs/autogalaxy_workspace#11 |
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
Add
PYAUTO_WORKSPACE_SMALL_DATASETS=1environment variable that overridesGrid2D.uniform()andMask2D.circular()to cap grid dimensions at 15x15 with 0.6"/px pixel scales. This makes workspace smoke tests dramatically faster by reducing all downstream computations (DFT, ray-tracing, image evaluation, plotting) without any changes to workspace scripts.Only applies when grids are larger than 15x15 (so PSF kernels and other small grids are unaffected).
API Changes
Added one environment variable:
PYAUTO_WORKSPACE_SMALL_DATASETS=1. No changes to function signatures or public API. Existing behaviour is completely unchanged when the env var is not set.Test Plan
PYAUTO_WORKSPACE_SMALL_DATASETS=1 PYAUTOFIT_TEST_MODE=2— completes with 15x15 dataFull API Changes (for automation & release notes)
Added
PYAUTO_WORKSPACE_SMALL_DATASETS=1— when set,Grid2D.uniform()andMask2D.circular()capshape_nativeto(15, 15)andpixel_scalesto0.6for any input grid larger than 15x15Migration
None — no existing code needs changes. The env var is opt-in.
🤖 Generated with Claude Code