Skip to content

Remove add_values/remove_values to fix backend type issues #6451

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

Merged
merged 1 commit into from
Jan 14, 2023

Conversation

michaelosthege
Copy link
Member

The add_values/remove_values methods accessed attributes that are not present on BaseTrace but only on NDarray, therefore violating the signature.

Checklist

Major / Breaking Changes

  • MultiTrace.add_values/MultiTrace.remove_values were removed.

Maintenance

  • More type hints in BaseTrace and MultiTrace signatures

…values`

The `add_values`/`remove_values` methods accessed attributes
that are not present on `BaseTrace` but only on `NDarray`,
therefore violating the signature.
@michaelosthege michaelosthege added trace-backend Traces and ArviZ stuff major Include in major changes release notes section labels Jan 12, 2023
@codecov
Copy link

codecov bot commented Jan 12, 2023

Codecov Report

Merging #6451 (08ea0d0) into main (6c4d4eb) will increase coverage by 8.81%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6451      +/-   ##
==========================================
+ Coverage   85.97%   94.78%   +8.81%     
==========================================
  Files         148      148              
  Lines       27731    27678      -53     
==========================================
+ Hits        23841    26234    +2393     
+ Misses       3890     1444    -2446     
Impacted Files Coverage Δ
pymc/tests/backends/test_ndarray.py 100.00% <ø> (ø)
pymc/backends/base.py 84.75% <100.00%> (+0.13%) ⬆️
pymc/sampling/parallel.py 87.36% <0.00%> (-1.06%) ⬇️
pymc/logprob/cumsum.py 100.00% <0.00%> (+3.12%) ⬆️
pymc/tests/logprob/utils.py 50.00% <0.00%> (+3.65%) ⬆️
pymc/logprob/rewriting.py 97.05% <0.00%> (+5.88%) ⬆️
pymc/logprob/abstract.py 97.56% <0.00%> (+6.09%) ⬆️
pymc/logprob/utils.py 100.00% <0.00%> (+13.79%) ⬆️
pymc/logprob/joint_logprob.py 97.01% <0.00%> (+19.40%) ⬆️
pymc/logprob/tensor.py 82.40% <0.00%> (+24.00%) ⬆️
... and 17 more

@michaelosthege michaelosthege marked this pull request as ready for review January 13, 2023 01:44
Copy link
Member

@aseyboldt aseyboldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :-)

@twiecki twiecki merged commit 6ab0c03 into pymc-devs:main Jan 14, 2023
@michaelosthege michaelosthege deleted the trace-typing branch January 14, 2023 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major Include in major changes release notes section trace-backend Traces and ArviZ stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants