Skip to content

perf: skip savefig in _save_subplot when PYAUTO_FAST_PLOTS=1#328

Merged
Jammy2211 merged 1 commit intomainfrom
feature/fast-plots-save-subplot
Apr 7, 2026
Merged

perf: skip savefig in _save_subplot when PYAUTO_FAST_PLOTS=1#328
Jammy2211 merged 1 commit intomainfrom
feature/fast-plots-save-subplot

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

The _save_subplot function in autogalaxy/plot/plot_utils.py had its own fig.savefig() path that wasn't covered by the _FAST_PLOTS check in autoarray. This caused subplot functions using _save_subplot to still render to disk during smoke tests.

API Changes

None — internal changes only.

Test Plan

  • All 811 PyAutoGalaxy tests pass

🤖 Generated with Claude Code

The _save_subplot function in PyAutoGalaxy had its own fig.savefig()
path that wasn't covered by the PYAUTO_FAST_PLOTS check in autoarray.
This caused subplot functions using _save_subplot to still render to
disk during smoke tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 51ee3a3 into main Apr 7, 2026
1 check passed
@Jammy2211 Jammy2211 deleted the feature/fast-plots-save-subplot branch April 7, 2026 13:09
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