Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functional rework small fixes #96

Merged
merged 8 commits into from
Feb 13, 2025
Merged

Functional rework small fixes #96

merged 8 commits into from
Feb 13, 2025

Conversation

casblaauw
Copy link
Collaborator

@casblaauw casblaauw commented Jan 23, 2025

Three small QOL changes:

Show/save plots

Currently, if you turn off show in render_plot, it closes the figure, which actually 'destroys' it and makes it impossible to visualise again without a lot of workarounds:
https://stackoverflow.com/questions/31729948/matplotlib-how-to-show-a-figure-that-has-been-closed

Also, it currently calls tight_layout with the pyplot wrapper, when this could just be done on the figure object to keep everything object-oriented.

Loading models for finetuning

Now gives a warning if loading a model with compile=True and a config was also loaded in the CREsted model

Clean-up

Removed some some duplicated functions from _utils.py.

@casblaauw casblaauw changed the title Update render_plot Functional rework small fixes Feb 11, 2025
@LukasMahieu LukasMahieu merged commit f457204 into main Feb 13, 2025
10 checks passed
@LukasMahieu LukasMahieu deleted the render_plot branch February 13, 2025 10:47
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.

2 participants