Skip to content

Commit 7d201c7

Browse files
authored
Merge branch 'main' into dependabot/pip/numpy-2.3.3
2 parents c252923 + 8e91e7f commit 7d201c7

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sphinx_subfigure==0.2.4
77
bayesian-optimization==3.1.0
88
scikit-optimize==0.10.2
99
numpy==2.3.3
10-
scipy==1.16.1
10+
scipy==1.16.2
1111
joblib==1.5.2
12-
scikit-learn==1.7.1
12+
scikit-learn==1.7.2
1313
matplotlib==3.10.6

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies = [
1616
"matplotlib",
1717
"tqdm",
1818
"scipy",
19-
"cr-mech-coli==0.6.0",
19+
"cr-mech-coli==0.7.1",
2020
]
2121

2222
[project.scripts]

src/sim_branching/simulation.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub struct Options {
9999
pub time: Py<TimeParameters>,
100100
/// Show or hide the progress bar during the simulation.
101101
#[approx(skip)]
102-
pub show_progressbar: bool,
102+
pub progressbar: bool,
103103
/// Specify how many threads to use for the simulation.
104104
/// Must be a positive integer value.
105105
#[approx(equal)]
@@ -123,7 +123,7 @@ impl Options {
123123
bacteria: Py::new(py, <BacterialParameters as Default>::default())?,
124124
domain: Py::new(py, <DomainParameters as Default>::default())?,
125125
time: Py::new(py, <TimeParameters as Default>::default())?,
126-
show_progressbar: false,
126+
progressbar: false,
127127
n_threads: 1.try_into().unwrap(),
128128
storage_location: Some("out".into()),
129129
},
@@ -309,7 +309,11 @@ pub fn run_sim_branching(
309309
n_threads,
310310
time,
311311
storage,
312-
show_progressbar: options.show_progressbar,
312+
progressbar: if options.progressbar {
313+
Some("".to_string())
314+
} else {
315+
None
316+
},
313317
};
314318

315319
let storager = run_simulation!(

0 commit comments

Comments
 (0)