-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix bug that does not correctly set the dtype of determinsitic variab… #6425
Fix bug that does not correctly set the dtype of determinsitic variab… #6425
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6425 +/- ##
===========================================
+ Coverage 78.24% 94.77% +16.52%
===========================================
Files 148 148
Lines 27731 27731
===========================================
+ Hits 21698 26281 +4583
+ Misses 6033 1450 -4583
|
one of these test failures may be flaky, but the |
I'll take a look at the failing tests later today unless someone else beats me to it |
pymc/tests/test_model.py
Outdated
@@ -356,6 +356,9 @@ def test_missing_data(self): | |||
|
|||
assert m["x2_missing"].type == gf._extra_vars_shared["x2_missing"].type | |||
|
|||
# The dtype of the merged observed/missing deterministic should match the RV dtype | |||
assert m.deterministics[0].type.dtype == str(X.dtype) |
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.
Sorry @michaelosthege, I've been busy with school stuff. My guess is that is line is what causes the test to fail?
…le after automatic imputation
…ng vector Co-authored-by: Ricardo Vieira <28983449+ricardoV94@users.noreply.github.com>
b75946b
to
a37ec86
Compare
What is this PR about?
Closes #6424 by setting the dtype of combined observed/interpolated deterministic generated by
model.make_obs_var
to be the same as the underling RV being interpolated.Checklist
Major / Breaking Changes
New features
Bugfixes
Documentation
Maintenance