File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff 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 ]
Original file line number Diff line number Diff 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 ! (
You can’t perform that action at this time.
0 commit comments