Commit 7768667
feat: add PYAUTO_WORKSPACE_SMALL_DATASETS env var to cap grid/mask size
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>1 parent e27efb5 commit 7768667
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
359 | 360 | | |
360 | 361 | | |
361 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
362 | 368 | | |
363 | 369 | | |
364 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
486 | 487 | | |
487 | 488 | | |
488 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
489 | 495 | | |
490 | 496 | | |
491 | 497 | | |
| |||
0 commit comments