Skip to content

Commit 46ae97f

Browse files
committed
Import renaming
1 parent 76d25d3 commit 46ae97f

File tree

15 files changed

+27
-26
lines changed

15 files changed

+27
-26
lines changed

.github/workflows/pypi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ jobs:
2828
cd test-sdist
2929
python -m venv venv-sdist
3030
venv-sdist/bin/python -m pip install numpy
31-
venv-sdist/bin/python -m pip install ../dist/pymc_experimental*.tar.gz
31+
venv-sdist/bin/python -m pip install ../dist/pymc_extras*.tar.gz
3232
echo "Checking import and version number (on release)"
33-
venv-sdist/bin/python -c "import pymc_experimental as pmx; assert pmx.__version__ == '${{ github.ref_name }}'[1:] if '${{ github.ref_type }}' == 'tag' else True; print(pmx.__version__)"
33+
venv-sdist/bin/python -c "import pymc as pmx; assert pmx.__version__ == '${{ github.ref_name }}'[1:] if '${{ github.ref_type }}' == 'tag' else True; print(pmx.__version__)"
3434
cd ..
3535
- name: Check the bdist installs and imports
3636
run: |
3737
mkdir -p test-bdist
3838
cd test-bdist
3939
python -m venv venv-bdist
40-
venv-bdist/bin/python -m pip install ../dist/pymc_experimental*.whl
40+
venv-bdist/bin/python -m pip install ../dist/pymc*.whl
4141
echo "Checking import and version number (on release)"
42-
venv-bdist/bin/python -c "import pymc_experimental as pmx; assert pmx.__version__ == '${{ github.ref_name }}'[1:] if '${{ github.ref_type }}' == 'tag' else pmx.__version__; print(pmx.__version__)"
42+
venv-bdist/bin/python -c "import pymc as pmx; assert pmx.__version__ == '${{ github.ref_name }}'[1:] if '${{ github.ref_type }}' == 'tag' else pmx.__version__; print(pmx.__version__)"
4343
cd ..
4444
- uses: actions/upload-artifact@v3
4545
with:

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PyMC experimental
1+
PyMC Extras
22
===================================================
33
|Tests|
44
|Coverage|
@@ -35,7 +35,7 @@ For the development version, you can install directly from GitHub:
3535
3636
Contributing
3737
============
38-
We welcome contributions from interested individuals or groups! For information about contributing to PyMC experimental check out our instructions, policies, and guidelines `here <https://github.com/pymc-devs/pymc-extras/blob/main/CONTRIBUTING.md>`_.
38+
We welcome contributions from interested individuals or groups! For information about contributing to PyMC Extras check out our instructions, policies, and guidelines `here <https://github.com/pymc-devs/pymc-extras/blob/main/CONTRIBUTING.md>`_.
3939

4040
Contributors
4141
============

pymc_extras/distributions/continuous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class Chi:
261261
--------
262262
.. code-block:: python
263263
import pymc as pm
264-
from pymc_experimental.distributions import Chi
264+
from pymc_extras.distributions import Chi
265265
266266
with pm.Model():
267267
x = Chi('x', nu=1)

pymc_extras/distributions/multivariate/r2d2m2cp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def R2D2M2CP(
302302
303303
.. code-block:: python
304304
305-
import pymc_experimental as pmx
305+
import pymc_extras as pmx
306306
import pymc as pm
307307
import numpy as np
308308
X = np.random.randn(10, 3)

pymc_extras/distributions/timeseries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class DiscreteMarkovChain(Distribution):
109109
.. code-block:: python
110110
111111
import pymc as pm
112-
import pymc_experimental as pmx
112+
import pymc_extras as pmx
113113
114114
with pm.Model() as markov_chain:
115115
P = pm.Dirichlet("P", a=[1, 1, 1], size=(3,))

pymc_extras/inference/laplace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from pymc.util import get_default_varnames
4141
from scipy import stats
4242

43-
from pymc_experimental.inference.find_map import (
43+
from pymc_extras.inference.find_map import (
4444
GradientBackend,
4545
_unconstrained_vector_to_constrained_rvs,
4646
find_MAP,
@@ -505,7 +505,7 @@ def fit_laplace(
505505
506506
Examples
507507
--------
508-
>>> from pymc_experimental.inference.laplace import fit_laplace
508+
>>> from pymc_extras.inference.laplace import fit_laplace
509509
>>> import numpy as np
510510
>>> import pymc as pm
511511
>>> import arviz as az

pymc_extras/linearmodel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import pandas as pd
33
import pymc as pm
44

5-
from pymc_experimental.model_builder import ModelBuilder
5+
from pymc_extras.model_builder import ModelBuilder
66

77

88
class LinearModel(ModelBuilder):

pymc_extras/model/marginal/marginal_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class MarginalModel(Model):
7373
.. code-block:: python
7474
7575
import pymc as pm
76-
from pymc_experimental import MarginalModel
76+
from pymc_extras import MarginalModel
7777
7878
with MarginalModel() as m:
7979
p = pm.Beta("p", 1, 1)
@@ -364,7 +364,7 @@ def recover_marginals(
364364
.. code-block:: python
365365
366366
import pymc as pm
367-
from pymc_experimental import MarginalModel
367+
from pymc_extras import MarginalModel
368368
369369
with MarginalModel() as m:
370370
p = pm.Beta("p", 1, 1)

pymc_extras/model/transforms/autoreparam.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from pymc.pytensorf import toposort_replace
2525
from pytensor.graph.basic import Apply, Variable
2626
from pytensor.tensor.random.op import RandomVariable
27+
from pymc_extras.model.transforms.autoreparam import vip_reparametrize
2728

2829
_log = logging.getLogger("pmx")
2930

@@ -342,7 +343,7 @@ def vip_reparametrize(
342343
343344
.. code-block:: python
344345
345-
from pymc_experimental.model.transforms.autoreparam import vip_reparametrize
346+
from pymc_extras.model.transforms.autoreparam import vip_reparametrize
346347
Reparam_eight, vip = vip_reparametrize(Centered_eight, ["theta"])
347348
348349
with Reparam_eight:

pymc_extras/printing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def model_table(
9494
import numpy as np
9595
import pymc as pm
9696
97-
from pymc_experimental.printing import model_table
97+
from pymc_extras.printing import model_table
9898
9999
coords = {"subject": range(20), "param": ["a", "b"]}
100100
with pm.Model(coords=coords) as m:

0 commit comments

Comments
 (0)