Skip to content

refactor: use PYAUTO_SKIP_CHECKS and PYAUTO_SKIP_VISUALIZATION#432

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

refactor: use PYAUTO_SKIP_CHECKS and PYAUTO_SKIP_VISUALIZATION#432
Jammy2211 merged 1 commit intomainfrom
feature/test-mode-separate

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Switch position resampling and inversion position checks from is_test_mode() to skip_checks(), and quantity visualizer from is_test_mode() to skip_visualization().

Depends on: PyAutoLabs/PyAutoConf#86, PyAutoLabs/PyAutoGalaxy#343

API Changes

No env var renames — behaviour changes only. Position resampling and inversion checks now controlled by PYAUTO_SKIP_CHECKS. Quantity visualization controlled by PYAUTO_SKIP_VISUALIZATION. See full details below.

Test Plan

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

Changed Behaviour

  • resample_positions_pdf_from() now checks skip_checks() instead of is_test_mode()
  • AnalysisDataset.__init__ inversion position exception now checks skip_checks() instead of is_test_mode()
  • VisualizerQuantity.visualize() now checks skip_visualization() instead of is_test_mode()

Migration

  • Before: export PYAUTOFIT_TEST_MODE=1 disabled positions + visualization
  • After: export PYAUTO_SKIP_CHECKS=1 for positions, export PYAUTO_SKIP_VISUALIZATION=1 for visualization

🤖 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 d7567f2 into main Apr 12, 2026
0 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