-
Notifications
You must be signed in to change notification settings - Fork 5
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
Updated model API #354
Merged
Merged
Updated model API #354
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
e63e7d2
Core proposal for new model interface
Peter9192 08da73d
Move concept to replace the original api
Peter9192 0336861
Add class for dealing with container image names and verisons
Peter9192 20de9df
wip - use new interface for pcrglobwb
Peter9192 e58c3d5
Use new api in pcrglob and provide default implementation for coords …
Peter9192 56f8c1a
use optionaldestbmi wrapper
Peter9192 6541406
fix flake8 and type issues in base/model.py
Peter9192 ff84bbc
Make ContainerImage subclass of str and add validation to it
Peter9192 40b80e4
Fix types and flakes in container and pcrglob model
Peter9192 16b7eb7
add tests for containerimage
Peter9192 a384061
Use validators to process received parametersets and forcing; pcrglob…
Peter9192 faf4b07
Move wflow to new model interface
BSchilperoort ee6352f
Fix typing issues, improve wflow implementation
BSchilperoort b336979
Move hype to new model api, fix hype tests
BSchilperoort 4cda895
Make cfg dir and file pydantic privateattrs
BSchilperoort 54a7b80
Add type assertion, pydantic (v1) seems unreliable
BSchilperoort 156ad1b
Fix wflow tests
BSchilperoort b9fae33
Make _make_cfg_dir reusable
BSchilperoort 054a011
Move marrmot to new api, fix tests
BSchilperoort f9d490a
Improve _make_cfg_dir, fix tests
BSchilperoort 380979c
Add version nrs, start move to post_init
BSchilperoort 2928b59
Add preliminary parameter set version check
BSchilperoort 6bc3cee
Move lisflood to new API, fix tests
BSchilperoort 73e4fee
Merge remote-tracking branch 'origin/main' into defaultmodels
Peter9192 422550b
fix some tests
Peter9192 9baf4de
fix setup of pcrglobwb (failing test)
Peter9192 11617db
fix more tests
Peter9192 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to do this for every model now only to add the folder prefix? Would it be possible to get that from
self.__class__
orself.__name__
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
self.__class__.__name__.lower()
would probably be a nice way of retrieving the folder prefix. It would usually remove the need to define_make_cfg_dir