Commit ecf95db5 authored by Romain Reuillon's avatar Romain Reuillon
Browse files

[Doc] fix: compile

parent b298709a
Pipeline #1201 failed with stages
in 24 minutes and 28 seconds
......@@ -174,7 +174,7 @@ You can think of the @code{DisplayHook} as an OpenMOLE equivalent to Scala's @co
@h2{Variable restriction}
You may want to restrict the hooked variables to a subset, like a variable filter.
You can use the following notation in the hook function {@code{hook(yourHookHere, values = Seq(i,j))}}
@hl.openmole("""
val i = Val[Int]
val j = Val[Int]
......@@ -183,7 +183,7 @@ You can use the following notation in the hook function {@code{hook(yourHookHere
val task = EmptyTask() set (
outputs += (i, j, k)
)
task hook(display, values = Seq(i, j)) // only i and j are hooked
task hook(workDirectory / "results/res.csv", values = Seq(j,k)) // only j and k are appended to the file
""", name = "variable restriction")
......
......@@ -60,7 +60,7 @@ For instance:
@li
@code{def squareDistance(s1: Seq[Double], s2: Seq[Double]): Double}, compute the sum of the squared distance between the respective elements of s1 and s2.
@li
@code("""def dynamicTimeWarpingDistance(s1: Seq[Double], s2: Seq[Double]): Double}, compute the @a(href := "https://en.wikipedia.org/wiki/Dynamic_time_warping", "dynamic time warping distance} between s1 and s2.
@code{def dynamicTimeWarpingDistance(s1: Seq[Double], s2: Seq[Double]): Double}, compute the @a(href := "https://en.wikipedia.org/wiki/Dynamic_time_warping", "dynamic time warping distance") between s1 and s2.
......
......@@ -109,5 +109,4 @@ SystemExecTask(s"${myWorkDirectory}/re-execute.sh") set (
val exploration = ExplorationTask(inDir in directoriesToAnalyze)
(exploration source s) -< analysisTask"
"", name = "complete example with source")
(exploration source s) -< analysisTask""", name = "complete example with source")
......@@ -2,7 +2,7 @@
@import org.openmole.site.Resource._
@import org.openmole.site._
@import org.openmole.site.tools._
@import DocumentationPages._
In OpenMOLE, transitions represent the links between tasks.
The following examples illustrate several kinds of transitions available in OpenMOLE.
......
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