Re-enable model.info output in test mode 2+#1188
Merged
Jammy2211 merged 1 commit intomain_buildfrom Apr 8, 2026
Merged
Conversation
model.info was being skipped entirely for PYAUTOFIT_TEST_MODE >= 2, but benchmarking shows it only takes ~0.18s. Re-enable it so smoke tests can verify the model composition is correct. - Remove early return guard from model.info property - Add model.info file write in the test-mode-2+ else branch Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Re-enable
model.infogeneration and file output whenPYAUTOFIT_TEST_MODEis 2 or 3. Benchmarking showed it adds only ~0.18s per call — negligible — while allowing smoke tests to verify model composition is correct.API Changes
None — internal changes only.
Test Plan
PYAUTOFIT_TEST_MODE=2smoke test ofautolens_workspace/scripts/imaging/modeling.pyproduces fullmodel.info(4041 bytes)PYAUTOFIT_TEST_MODE=3also produces fullmodel.infoFull API Changes (for automation & release notes)
Changed Behaviour
AbstractPriorModel.infoproperty — no longer returns a stub string in test mode 2+; always generates full model info textAbstractSearch.fit()— now writesmodel.infofile to output path in test mode 2+, even though the rest ofpre_fit_outputis still skippedMigration
No migration needed — this is an internal test-mode behaviour change with no public API impact.
🤖 Generated with Claude Code