Skip to content

Commit 2598d56

Browse files
committed
feat: Add progress bar on terminal
1 parent 0767be5 commit 2598d56

File tree

8 files changed

+272
-88
lines changed

8 files changed

+272
-88
lines changed

Cargo.lock

Lines changed: 96 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,23 @@ name = "_lib"
2121
crate-type = ["cdylib"]
2222

2323
[dependencies]
24-
nuts-rs = "0.10.0"
24+
nuts-rs = "0.11.0"
2525
numpy = "0.21.0"
2626
ndarray = "0.15.6"
2727
rand = "0.8.5"
2828
thiserror = "1.0.44"
2929
rand_chacha = "0.3.1"
3030
rayon = "1.9.0"
3131
# Keep arrow in sync with nuts-rs requirements
32-
arrow = { version = "51.0.0", default-features = false, features = ["ffi"] }
32+
arrow = { version = "52.0.0", default-features = false, features = ["ffi"] }
3333
anyhow = "1.0.72"
3434
itertools = "0.13.0"
3535
bridgestan = "2.4.1"
3636
rand_distr = "0.4.3"
3737
smallvec = "1.11.0"
3838
upon = { version = "0.8.1", default-features = false, features = [] }
3939
time-humanize = { version = "0.1.3", default-features = false }
40+
indicatif = "0.17.8"
4041

4142
[dependencies.pyo3]
4243
version = "0.21.0"

python/nutpie/compile_pymc.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,13 @@ def with_data(self, **updates):
8787
user_data=user_data,
8888
)
8989

90-
def _make_sampler(self, settings, init_mean, cores, template, rate, callback=None):
90+
def _make_sampler(self, settings, init_mean, cores, progress_type):
9191
model = self._make_model(init_mean)
9292
return _lib.PySampler.from_pymc(
93-
settings, cores, model, template, rate, callback
93+
settings,
94+
cores,
95+
model,
96+
progress_type,
9497
)
9598

9699
def _make_model(self, init_mean):

0 commit comments

Comments
 (0)