Skip to content

feat: PYAUTO_WORKSPACE_SMALL_DATASETS env var for fast smoke tests#253

Merged
Jammy2211 merged 1 commit intomainfrom
feature/smoke-test-fast
Apr 6, 2026
Merged

feat: PYAUTO_WORKSPACE_SMALL_DATASETS env var for fast smoke tests#253
Jammy2211 merged 1 commit intomainfrom
feature/smoke-test-fast

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Add PYAUTO_WORKSPACE_SMALL_DATASETS=1 environment variable that overrides Grid2D.uniform() and Mask2D.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

  • PyAutoArray unit tests pass (722 passed)
  • Run imaging/modeling.py with PYAUTO_WORKSPACE_SMALL_DATASETS=1 PYAUTOFIT_TEST_MODE=2 — completes with 15x15 data
  • Run interferometer/modeling.py with same env vars — completes successfully
  • Run without env var — original behaviour preserved
Full API Changes (for automation & release notes)

Added

  • Environment variable PYAUTO_WORKSPACE_SMALL_DATASETS=1 — when set, Grid2D.uniform() and Mask2D.circular() cap shape_native to (15, 15) and pixel_scales to 0.6 for any input grid larger than 15x15

Migration

None — no existing code needs changes. The env var is opt-in.

🤖 Generated with Claude Code

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>
@Jammy2211
Copy link
Copy Markdown
Collaborator Author

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.

1 participant