-
Notifications
You must be signed in to change notification settings - Fork 380
Ensure HMASynthesizer
utilizes the numerical_distributions
set through set_table_parameters
#2659
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2659 +/- ##
==========================================
+ Coverage 98.13% 98.14% +0.01%
==========================================
Files 70 70
Lines 7487 7490 +3
==========================================
+ Hits 7347 7351 +4
+ Misses 140 139 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
if numerical_distributions: | ||
existing = getattr(synthesizer, 'numerical_distributions', {}) or {} | ||
merged = {**existing, **numerical_distributions} | ||
synthesizer._set_numerical_distributions(merged) |
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.
doesn't this function only apply to the child table parameter columns?
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.
That is what we want. The issue is that _set_numerical_distributions
overwrites the existing numerical_distributions
attribute, so the existing distributions the user chose get erased.
CU-86b68xxqa, Resolve #2648