-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR changes the way results are saved and enables loading and validating results. Change summary - Added custom dataclass serialisation - Models are serializable now - Results can be loaded - Added save/load_result_file - Parameter History added to result Commits: * Added project to darglint, mypy and pydocstyle pre-commit checks * Added Model.as_dict and Model.get_parameters * Added project/dataclass, changed scheme, adapted yml io * Changed result use project/dataclass * Added test for save model yml * Added load and save result file and implemented it with yml * Refactored folder plugin, moved SavingOptions. * Update glotaran/project/result.py * Made variable names in model more consistent. * Added parameter history class and added it to result. * 🔧 Configure darglint to ignore protocol methods * Fixed Parameter doc. * ♻️ Refactored by Sourcery * 🧹 Partial revert of eb430c * 🧹 Partial revert of 761d4b * 🧹 Restored original behavior of save_result folder plugin + added files As a side effect it sets the file paths of saved files in the Result object. * 🧹 Removed unused variable name in yml save_model looping over dict * 🩹 Fixed wrong typing usage of any builtin function * 🔧👌 Activated mypy for parameter subpackage and fixed typing issues * 🔧👌🩹 Activated mypy for projectsubpackage and fixed typing issues * 🩹 Fix bug in _create_result when optimizer fails * ♻️ Rename ParameterHistory.{number_records,number_of_records) * 🔧 Raise interrogate threshold from 55% to 59% (current 60.7%) * 🧹 Removed obsolete darglint ignore comments * 🧹Fix typos * 👌 Add annotation to __str__ method * ♻️ Rename project.dataclasses to project.dataclass_helpers * Update glotaran/analysis/optimize.py * Update glotaran/parameter/parameter_group.py * Update glotaran/parameter/parameter_group.py * ♻️ Refactor glotaran/builtin/io/yml/test/test_save_model.py to use tmp_path instead of tmpdir * 🚇 🔧 Skip interrogate in pre-commit CI * 🧹 Renamed 'test_dataclasses.py' to 'test_dataclass_helpers.py' Co-authored-by: Sebastian Weigand <s.weigand.phy@gmail.com> Co-authored-by: Sourcery AI <> Co-authored-by: Joris Snellenburg <jsnel@users.noreply.github.com>
- Loading branch information
1 parent
7797bc9
commit d1e36a9
Showing
39 changed files
with
1,729 additions
and
617 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.