Skip to content

Commit

Permalink
Remove numpy restriction (#990)
Browse files Browse the repository at this point in the history
* Remove numpy restriction

* fix pickling error

get_potential_fn.<locals>.postprocess_fn

* change file

* Update helpers.py

* pylint fix
  • Loading branch information
ahartikainen authored Jan 24, 2020
1 parent 285ed3d commit ad5819c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion arviz/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ def numpyro_schools_model(data, draws, chains):
# This block lets the posterior be pickled
mcmc.sampler._sample_fn = None # pylint: disable=protected-access
mcmc.sampler._init_fn = None # pylint: disable=protected-access
mcmc.sampler._constrain_fn = None # pylint: disable=protected-access
mcmc.sampler._postprocess_fn = None # pylint: disable=protected-access
mcmc.sampler._potential_fn = None # pylint: disable=protected-access
mcmc._cache = {} # pylint: disable=protected-access
return mcmc

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
matplotlib>=3.0
numpy>=1.12,<1.18
numpy>=1.12
scipy>=0.19
packaging
pandas>=0.23
Expand Down

0 comments on commit ad5819c

Please sign in to comment.