Hi,
I'm testing an R program with OpenMOLE 5.9. The Mole works fine in
command mode, but gives the following error in Web mode:
<console>:220: error: type mismatch;
found : Unit
required: org.openmole.core.workflow.puzzle.PuzzleBuilder
}
^
<console>:220: error: type mismatch;
found : Unit
required: org.openmole.core.workflow.puzzle.PuzzleBuilder
}
^
the Mole is as follows:
// Declare the variable
val K = Val[Int]
val Y0 = Val[Int]
val a = Val[Double]
val output = Val[File]
// R task
val rTask =
SystemExecTask(
"./care.bin",
"./care/re-execute.sh R -f ME.R --slave --args K=${K} Y0=${Y0} a=
${a}"
) set (
resources += workDirectory / "care.bin",
inputs += (K, Y0, a),
outputs += (K, Y0, a),
outputFiles +=
("care/rootfs/home/jwang/bananier/Software/CARE/out_ME.csv", output)
)
val exploration =
ExplorationTask(
(K in List(300,400)) x (Y0 in List(40)) x (a in (0.1 to 0.3 by 0.1))
)
val copy = CopyFileHook(output, workDirectory /
"results/result-${K}-${Y0}-${a}.csv")
val ex = exploration -< (rTask hook copy) start
Thanks!
Juhui
_______________________________________________
OpenMOLE-users mailing list
[email protected]
http://fedex.iscpif.fr/mailman/listinfo/openmole-users