Skip to content

Commit c3e3d24

Browse files
authored
Merge pull request #30 from jonaspleyer/dependabot/pip/cr-mech-coli-0.7.1
Bump cr-mech-coli from 0.6.0 to 0.7.1
2 parents f7f7661 + 3956c51 commit c3e3d24

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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)