Skip to content

refactor: rename env vars to PYAUTO_* prefix#265

Merged
Jammy2211 merged 1 commit intomainfrom
feature/test-mode-separate
Apr 12, 2026
Merged

refactor: rename env vars to PYAUTO_* prefix#265
Jammy2211 merged 1 commit intomainfrom
feature/test-mode-separate

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Rename environment variables to the unified PYAUTO_* prefix and switch mesh validation checks from is_test_mode() to skip_checks().

Depends on: PyAutoLabs/PyAutoConf#86

API Changes

Three env var renames. Hilbert mesh validation now controlled by PYAUTO_SKIP_CHECKS instead of PYAUTOFIT_TEST_MODE. See full details below.

Test Plan

  • All 727 PyAutoArray tests pass
  • CLAUDE.md documentation updated
Full API Changes (for automation & release notes)

Changed Behaviour

  • PYAUTOARRAY_OUTPUT_MODE renamed to PYAUTO_OUTPUT_MODE (plot/output.py, plot/utils.py)
  • PYAUTO_WORKSPACE_SMALL_DATASETS renamed to PYAUTO_SMALL_DATASETS (grids, masks, over_sampling, dataset_util)
  • check_adapt_pixelisation() and check_adapt_background_pixels() now check PYAUTO_SKIP_CHECKS instead of is_test_mode()

Migration

  • Before: PYAUTOARRAY_OUTPUT_MODE=1 → After: PYAUTO_OUTPUT_MODE=1
  • Before: PYAUTO_WORKSPACE_SMALL_DATASETS=1 → After: PYAUTO_SMALL_DATASETS=1

🤖 Generated with Claude Code

Split the catch-all PYAUTOFIT_TEST_MODE into purpose-specific variables:
- PYAUTO_TEST_MODE (sampler speedup, levels 0-3)
- PYAUTO_SKIP_FIT_OUTPUT (pre/post-fit I/O, VRAM, result text)
- PYAUTO_SKIP_VISUALIZATION (fit visualization and plotting)
- PYAUTO_SKIP_CHECKS (mesh validation, position resampling, weight thresholds)

Also renames:
- PYAUTOARRAY_OUTPUT_MODE -> PYAUTO_OUTPUT_MODE
- PYAUTO_WORKSPACE_SMALL_DATASETS -> PYAUTO_SMALL_DATASETS

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Jammy2211
Copy link
Copy Markdown
Collaborator Author

Workspace PR: PyAutoLabs/autolens_workspace#51

@Jammy2211 Jammy2211 merged commit c87c782 into main Apr 12, 2026
1 of 2 checks passed
@Jammy2211 Jammy2211 deleted the feature/test-mode-separate branch April 12, 2026 12:26
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