Skip to content

Conversation

lucianopaz
Copy link
Member

Closes #6199

What is this PR about?
...

Checklist

Major / Breaking Changes

  • ...

Bugfixes / New features

  • get_vars_in_point_list was implemented in a way that expected all of the variables that were contained in the trace, to also be defined in the model. This fixes that problem and makes the function return a list of the variables that are defined both in the trace and in the model.

Docs / Maintenance

  • ...

@ricardoV94 ricardoV94 changed the title get_vars_in_point_list only checks vars that are both in the model and the point list Fix bug in get_vars_in_point_list when model does not have variables that are in the trace Oct 11, 2022
@ricardoV94 ricardoV94 changed the title Fix bug in get_vars_in_point_list when model does not have variables that are in the trace Fix bug in get_vars_in_point_list when model does not have variables that exist in the trace Oct 11, 2022
@codecov
Copy link

codecov bot commented Oct 11, 2022

Codecov Report

Merging #6203 (6a9c71b) into main (eaa51f3) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #6203   +/-   ##
=======================================
  Coverage   93.58%   93.59%           
=======================================
  Files         101      101           
  Lines       22151    22153    +2     
=======================================
+ Hits        20731    20733    +2     
  Misses       1420     1420           
Impacted Files Coverage Δ
pymc/model.py 88.26% <100.00%> (+0.03%) ⬆️
pymc/sampling.py 82.63% <100.00%> (ø)

Copy link
Member

@ricardoV94 ricardoV94 left a comment

Choose a reason for hiding this comment

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

Thanks @lucianopaz LGTM

@ricardoV94 ricardoV94 merged commit 52a1b3c into pymc-devs:main Oct 11, 2022
@lucianopaz lucianopaz deleted the iss6199 branch October 11, 2022 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_vars_in_point_list should ignore variables that are not in the model
2 participants