Commit ce0c0a97 authored by Juste Raimbault's avatar Juste Raimbault
Browse files

Running JuliaTask

parent df54e6be
// Declare the variable // Declare the variable
val arg = Val[Int] val arg = Val[Int]
val arg2 = Val[Double]
val numericaloutput = Val[Int] val numericaloutput = Val[Int]
val fileoutput = Val[File] val fileoutput = Val[File]
...@@ -7,6 +8,7 @@ val fileoutput = Val[File] ...@@ -7,6 +8,7 @@ val fileoutput = Val[File]
val juliaTask = val juliaTask =
JuliaTask(workDirectory / "hello.jl") set ( JuliaTask(workDirectory / "hello.jl") set (
inputs += arg.mapped, inputs += arg.mapped,
inputs += arg2.mapped,
outputs += arg, outputs += arg,
outputs += numericaloutput.mapped, outputs += numericaloutput.mapped,
outputs += fileoutput mapped "output.txt" outputs += fileoutput mapped "output.txt"
...@@ -17,5 +19,5 @@ val env = LocalEnvironment(2) ...@@ -17,5 +19,5 @@ val env = LocalEnvironment(2)
DirectSampling( DirectSampling(
evaluation = juliaTask, evaluation = juliaTask,
sampling = arg in (0 to 10) sampling = (arg in (0 to 10)) x (arg2 is 2.0)
) hook copy on env ) hook copy on env
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment