-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathFIDDLE.R
16 lines (14 loc) · 1.01 KB
/
FIDDLE.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
library(argparse)
parser <- ArgumentParser(description=' ')
parser$add_argument('--data_path', type="character")
parser$add_argument('--population', type="character")
parser$add_argument('--T_', type="double")
parser$add_argument('--dt', type="double")
parser$add_argument('--theta_1', type="double", default='0.001')
parser$add_argument('--theta_2', type="double", default='0.001')
parser$add_argument('--theta_freq', type="double", default='1.0')
parser$add_argument('--stats_functions', nargs='+', type="character", default='min max mean' )
parser$add_argument('--binarize', type="integer", default='1', nargs='?', const=TRUE)
args = parser$parse_args()
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)
system(cmd)