Skip to content

Commit 5bf838e

Browse files
committed
default options in KaDe
1 parent 0eb2709 commit 5bf838e

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed

odes/KaDE.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(** Network/ODE generation
22
* Creation: 22/07/2016
3-
* Last modification: Time-stamp: <Apr 24 2017>
3+
* Last modification: Time-stamp: <Apr 26 2017>
44
*)
55

66
module A = Odes.Make (Ode_interface)

odes/ode_args.ml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ type t = {
1414
mathematica_output : string option ref ;
1515
sbml_output : string option ref ;
1616
dotnet_output : string option ref ;
17+
data_file : string option ref ;
1718
with_symmetries : string ref ;
1819
show_symmetries : bool ref ;
1920
views : bool ref ;
@@ -37,12 +38,13 @@ let default : t =
3738
count = ref "Embeddings" ;
3839
show_reactions = ref true ;
3940
compute_jacobian = ref true ;
40-
dotnet_output = ref None ;
41-
octave_output = ref None ;
42-
matlab_output = ref None ;
43-
maple_output = ref None ;
44-
mathematica_output = ref None ;
45-
sbml_output = ref None ;
41+
dotnet_output = ref (Some "network.net") ;
42+
octave_output = ref (Some "ode.m") ;
43+
matlab_output = ref (Some "ode.m") ;
44+
maple_output = ref (Some "ode.mws") ;
45+
mathematica_output = ref (Some "ode.nb") ;
46+
sbml_output = ref (Some "network.xml") ;
47+
data_file = ref (Some "data.csv") ;
4648
with_symmetries = ref "None" ;
4749
show_symmetries = ref false ;
4850
views = ref true ;

util/run_cli_args.ml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ let default : t = {
5555
let default_gui =
5656
{
5757
alg_var_overwrite_gui = ref[];
58-
minValue_gui = ref None;
59-
maxValue_gui = ref None;
60-
plotPeriod_gui = ref None;
61-
rescale_gui = ref None;
58+
minValue_gui = ref (Some 0.);
59+
maxValue_gui = ref (Some 1.);
60+
plotPeriod_gui = ref (Some 0.01);
61+
rescale_gui = ref (Some 1.);
6262
marshalizedInFile_gui = ref "";
6363
inputKappaFileNames_gui = ref [];
6464
(* initialMix_gui = ref None;*)
65-
outputDataFile_gui = ref None;
65+
outputDataFile_gui = ref (Some "data.csv");
6666
outputDirectory_gui = ref ".";
6767
batchmode_gui = ref "";
6868
newSyntax_gui = ref false;
@@ -165,12 +165,12 @@ let options_gen (t :t) (t_gui :t_gui) : (string * Arg.spec * Superarg.spec * str
165165
(fun outputDataFile -> t.outputDataFile <- Some outputDataFile),
166166
Superarg.String_opt t_gui.outputDataFile_gui,
167167
"file name for data output",
168-
["0_model"; "3_integration_settings"], Superarg.Normal) ;
168+
["0_model"; "3_integration_settings"], Superarg.Hidden) ;
169169
("-d",
170170
Arg.String (fun outputDirectory -> t.outputDirectory <- outputDirectory),
171171
Superarg.String t_gui.outputDirectory_gui,
172172
"Specifies directory name where output file(s) should be stored",
173-
["0_model"; "3_integration_settings"], Superarg.Normal) ;
173+
["0_model"; "2_semantics" ; "3_integration_settings"], Superarg.Normal) ;
174174
("-load-sim",
175175
Arg.String (fun file -> t.marshalizedInFile <- file),
176176
Superarg.String t_gui.marshalizedInFile_gui,
@@ -202,6 +202,15 @@ let options t =
202202
(List.rev (options_gen t default_gui))
203203

204204
let options_gui t_gui =
205-
List.rev_map
205+
(List.rev_map
206206
(fun (a,_,b,c,d,e) -> a,b,c,d,e)
207-
(List.rev (options_gen default t_gui))
207+
(List.rev (options_gen default t_gui)))
208+
@[
209+
"--output-plot",
210+
Superarg.String_opt t_gui.outputDataFile_gui,
211+
"file name for data output",
212+
["1_output";"2_semantics";"3_integration_settings"],Normal;
213+
"--data-file",
214+
Superarg.String_opt t_gui.outputDataFile_gui,
215+
"file name for data output",
216+
["1_output";"2_semantics";"3_integration_settings"],Hidden;]

0 commit comments

Comments
 (0)