julia.oms 582 Bytes
Newer Older
Juste Raimbault's avatar
Juste Raimbault committed
1
2
// Declare the variable
val arg = Val[Int]
Juste Raimbault's avatar
Juste Raimbault committed
3
val arg2 = Val[Double]
Juste Raimbault's avatar
Juste Raimbault committed
4
5
6
7
8
9
10
val numericaloutput = Val[Int]
val fileoutput = Val[File]

// julia task
val juliaTask =
  JuliaTask(workDirectory / "hello.jl") set (
    inputs += arg.mapped,
Juste Raimbault's avatar
Juste Raimbault committed
11
    inputs += arg2.mapped,
Juste Raimbault's avatar
Juste Raimbault committed
12
13
14
15
16
17
18
19
20
21
    outputs += arg,
    outputs += numericaloutput.mapped,
    outputs += fileoutput mapped "output.txt"
  )

val copy = CopyFileHook(fileoutput, workDirectory / "result/hello${arg}.txt")
val env = LocalEnvironment(2)

DirectSampling(
  evaluation = juliaTask,
Juste Raimbault's avatar
Juste Raimbault committed
22
  sampling = (arg in (0 to 10)) x (arg2 is 2.0)
Juste Raimbault's avatar
Juste Raimbault committed
23
) hook copy on env