Skip to content

Commit c6197f2

Browse files
authored
Merge pull request #118 from ColCarroll/env
Upgrade pymc, make new release.
2 parents 5ef1329 + 9972f23 commit c6197f2

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

.pylintrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ confidence=
6262
# --disable=W".
6363
disable=fixme,
6464
no-else-return,
65-
too-many-lines
65+
too-many-lines,
66+
similarities
6667

6768
# Enable the message, report, category or checker with the given id(s). You can
6869
# either give multiple identifier separated by comma (,) or put this option
@@ -484,6 +485,9 @@ preferred-modules=
484485

485486
[DESIGN]
486487

488+
# Maximum number of positional arguments for function / method.
489+
max-positional-arguments=10
490+
487491
# Maximum number of arguments for function / method.
488492
max-args=10
489493

pyei/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""A package for rpv and ecological inference"""
22

3-
__version__ = "1.1.1"
3+
__version__ = "1.1.2"
44
from .two_by_two import *
55
from .goodmans_er import *
66
from .plot_utils import *

pyei/r_by_c.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"""
1010

1111
import warnings
12-
from pymc import sampling_jax
12+
import pymc as pm
1313
import numpy as np
1414
from .plot_utils import (
1515
plot_boxplots,
@@ -200,8 +200,11 @@ def fit( # pylint: disable=too-many-branches
200200
"multinomial-dirichlet",
201201
]: # for models whose sampling is w/ pycm
202202
with self.sim_model: # pylint: disable=not-context-manager
203-
self.sim_trace = sampling_jax.sample_numpyro_nuts(
204-
target_accept=target_accept, tune=tune, **other_sampling_args
203+
self.sim_trace = pm.sample(
204+
target_accept=target_accept,
205+
tune=tune,
206+
nuts_sampler="numpyro",
207+
**other_sampling_args,
205208
)
206209
elif self.model_name == "greiner-quinn":
207210
self.sim_trace = pyei_greiner_quinn_sample(

pyei/two_by_two.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import warnings
77
import pymc as pm
8-
from pymc import sampling_jax
98
import numpy as np
109
import pytensor.tensor as at
1110
import pytensor
@@ -847,9 +846,10 @@ def fit(
847846
**other_sampling_args,
848847
)
849848
else:
850-
self.sim_trace = sampling_jax.sample_numpyro_nuts(
849+
self.sim_trace = pm.sample(
851850
target_accept=target_accept,
852851
tune=tune,
852+
nuts_sampler="numpyro",
853853
**other_sampling_args,
854854
)
855855

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pymc >= 5.10.0
1+
pymc >= 5.18.0
22
arviz
33
scikit-learn
44
matplotlib

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_requirements():
2121
with codecs.open(REQUIREMENTS_FILE, "r", encoding="utf-8") as buff:
2222
return buff.read().splitlines()
2323
except:
24-
return """pymc >= 5.10.0
24+
return """pymc >= 5.18.0
2525
arviz
2626
scikit-learn
2727
matplotlib

0 commit comments

Comments
 (0)