-
Notifications
You must be signed in to change notification settings - Fork 104
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
CU-8694py1jr fix old config load with reg json #449
CU-8694py1jr fix old config load with reg json #449
Conversation
all looks good, tested on the metacat models from KCH, works fine now! |
@@ -15,9 +15,24 @@ def weighted_average_function(self) -> Callable[[float], int]: | |||
|
|||
|
|||
def is_old_type_config_dict(d: dict) -> bool: |
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.
This assumes all configs were created post the pydantic changes to the config right?
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.
Yes, that would be true since before that it would have been saved as a raw dict.
The last PR for (almost) primitive config (#425) had a few issues:
ConfigMetaCAT
)This PR fixes the above.
It also adds tests for old types of config (regular, MetaCAT, TNER, and RelCAT).
For each, it makes sure that they're classified as old style, and that a value changed within them is correctly identified as having been changed / loaded off disk.