Skip to content
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

Remove global RandomStream #6396

Merged
merged 1 commit into from
Dec 14, 2022
Merged

Conversation

ricardoV94
Copy link
Member

@ricardoV94 ricardoV94 commented Dec 14, 2022

No longer needed after #6304

@codecov
Copy link

codecov bot commented Dec 14, 2022

Codecov Report

Merging #6396 (0009ff3) into main (f96594b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #6396   +/-   ##
=======================================
  Coverage   94.79%   94.80%           
=======================================
  Files         148      148           
  Lines       27488    27477   -11     
=======================================
- Hits        26058    26049    -9     
+ Misses       1430     1428    -2     
Impacted Files Coverage Δ
pymc/distributions/simulator.py 87.23% <ø> (ø)
pymc/pytensorf.py 91.72% <ø> (+0.25%) ⬆️
pymc/sampling/parallel.py 87.36% <ø> (-0.09%) ⬇️
pymc/variational/inference.py 84.97% <ø> (ø)
pymc/data.py 91.77% <100.00%> (+0.10%) ⬆️

Comment on lines +135 to +138
def make_node(self, rng, *args, **kwargs):
if rng is None:
rng = pytensor.shared(np.random.default_rng())
return super().make_node(rng, *args, **kwargs)
Copy link
Member Author

Choose a reason for hiding this comment

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

Can be removed once pymc-devs/pytensor#97 is solved

Copy link
Member

Choose a reason for hiding this comment

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

sure thing

@ferrine ferrine merged commit ebd42a5 into pymc-devs:main Dec 14, 2022
@ricardoV94 ricardoV94 deleted the remote_at_rng branch June 6, 2023 03:03
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.

2 participants