Skip to content

Add compatibility for ProjectManager.config and save_config for simplified configuration saving#205

Merged
RHammond2 merged 2 commits intoNLRWindSystems:devfrom
RHammond2:enhancement/save-project-config
Mar 25, 2026
Merged

Add compatibility for ProjectManager.config and save_config for simplified configuration saving#205
RHammond2 merged 2 commits intoNLRWindSystems:devfrom
RHammond2:enhancement/save-project-config

Conversation

@RHammond2
Copy link
Copy Markdown
Collaborator

@RHammond2 RHammond2 commented Mar 24, 2026

This PR adds the prepare_config_for_save function to config.py that converts NumPy data types to standard Python data types that are compatible with the PyYAML SafeDump class. The save_config function has also adopted the prepare_config_for_save and a conversion from benedict dictionaries to standard Python dictionaries ensuring ProjectManger.config configurations can easily be saved to file for later reuse.

Please note the changelog has not been updated as there is another PR this enhancement stems from that has modified the file type, location, and structure, so the changelog will be updated after merging this PR.

@RHammond2 RHammond2 added the enhancement Enhancement to an existing feature label Mar 24, 2026
@RHammond2 RHammond2 merged commit 0315726 into NLRWindSystems:dev Mar 25, 2026
28 checks passed
@RHammond2 RHammond2 deleted the enhancement/save-project-config branch March 25, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement to an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant