-
Notifications
You must be signed in to change notification settings - Fork 317
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
Show warning when loading a synthesizer on a previously-saved SDV version #1857
Show warning when loading a synthesizer on a previously-saved SDV version #1857
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1857 +/- ##
==========================================
+ Coverage 97.32% 97.34% +0.01%
==========================================
Files 51 51
Lines 4823 4858 +35
==========================================
+ Hits 4694 4729 +35
Misses 129 129 ☔ View full report in Codecov by Sentry. |
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.
Looks good!
Good job, just let few suggestions
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.
LGTM!
sdv/_utils.py
Outdated
current_public_version = getattr(version, 'public', None) | ||
current_enterprise_version = getattr(version, 'enterprise', None) | ||
public_missmatch = current_public_version != synthesizer._fitted_sdv_version | ||
enterprise_missmatch = current_enterprise_version != synthesizer._fitted_sdv_enterprise_version |
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.
I think we can't assume loaded synthesizers will have this attribute since it's being added
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 should be addressed now using getattr
instead of directly accessing it. a006215
Resolves #1836
CU-86azkp7mu
Added a new attribute to the
synthesizers
called_fitted_sdv_enterprise_version
which will only be added toget_info
if it is notNone
.