Skip to content

Commit 9c6d379

Browse files
committed
add FIDDLE.R
1 parent 3dc1ef9 commit 9c6d379

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

FIDDLE.R

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
library(argparse)
2+
parser <- ArgumentParser(description=' ')
3+
parser$add_argument('--data_path', type="character")
4+
parser$add_argument('--population', type="character")
5+
parser$add_argument('--T_', type="double")
6+
parser$add_argument('--dt', type="double")
7+
parser$add_argument('--theta_1', type="double", default='0.001')
8+
parser$add_argument('--theta_2', type="double", default='0.001')
9+
parser$add_argument('--theta_freq', type="double", default='1.0')
10+
parser$add_argument('--stats_functions', nargs='+', type="character", default='min max mean' )
11+
parser$add_argument('--binarize', type="integer", default='1', nargs='?', const=TRUE)
12+
args = parser$parse_args()
13+
14+
cmd = paste0('python -m FIDDLE.run --data_path=', args$data_path, ' --population=', args$population, ' --T=', args$T_, ' --dt=' , args$dt, ' --theta_1=', args$theta_1, ' --theta_2=', args$theta_2, ' --theta_freq=', args$theta_freq, ' --stats_functions ', args$stats_functions)
15+
16+
system(cmd)

0 commit comments

Comments
 (0)