Skip to content

Commit 82621a2

Browse files
fix import error due to moving progress bar functions in latest pymc (#542)
* import progress bar functions from pymc.progress_bar instead of pymc.util * pinned pymc version to 5.24.0 * Update version pins and dependencies * Update pymc verison pin --------- Co-authored-by: jessegrabowski <jessegrabowski@gmail.com>
1 parent 9c50e94 commit 82621a2

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

conda-envs/environment-test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@ channels:
33
- conda-forge
44
- nodefaults
55
dependencies:
6-
- pymc>=5.21.1
6+
- pymc>=5.24.1
7+
- pytensor>=2.31.4
78
- scikit-learn
8-
- better-optimize>=0.1.2
9+
- better-optimize>=0.1.5
910
- dask<2025.1.1
1011
- xhistogram
1112
- statsmodels
1213
- numba
1314
- pytest
1415
- pytest-cov
1516
- pydantic>=2.0.0
16-
- preliz>=0.5.0
17+
- preliz>=0.20.0
1718
- pip
1819
- pip:
1920
- jax

pymc_extras/inference/pathfinder/pathfinder.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,15 @@
3838
from pymc.initial_point import make_initial_point_fn
3939
from pymc.model import modelcontext
4040
from pymc.model.core import Point
41+
from pymc.progress_bar import CustomProgress, default_progress_theme
4142
from pymc.pytensorf import (
4243
compile,
4344
find_rng_nodes,
4445
reseed_rngs,
4546
)
4647
from pymc.util import (
47-
CustomProgress,
4848
RandomSeed,
4949
_get_seeds_per_chain,
50-
default_progress_theme,
5150
get_default_varnames,
5251
)
5352
from pytensor.compile.function.types import Function

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ keywords = [
3434
license = {file = "LICENSE"}
3535
dynamic = ["version"] # specify the version in the __init__.py file
3636
dependencies = [
37-
"pymc>=5.21.1",
37+
"pymc>=5.24.1",
38+
"pytensor>=2.31.4",
3839
"scikit-learn",
39-
"better-optimize>=0.1.4",
40+
"better-optimize>=0.1.5",
4041
"pydantic>=2.0.0",
42+
"preliz>=0.20.0",
4143
]
4244

4345
[project.optional-dependencies]
@@ -51,7 +53,6 @@ dev = [
5153
"dask[all]<2025.1.1",
5254
"blackjax",
5355
"statsmodels",
54-
"preliz>=0.5.0",
5556
]
5657
docs = [
5758
"nbsphinx>=0.4.2",

0 commit comments

Comments
 (0)