Hey Seb,
Try to wrap your two consecutive tasks in a MoleTask to apply the same env
setting to both of them.
http://www.openmole.org/current/Documentation_Language_Tasks_Mole.html
Cheers
J.
On 25 November 2016 11:58:40 GMT+00:00, sebastien rey coyrehourcq
<[email protected]> wrote:
>Hi guys,
>
>
>
>With env = LocalEnvironment(...)
>
>
>
>One little question about env position in final workflow,
>
>i need to run two task on grid node, so i position my env like that :
>
>
>
>val exploration =
> ExplorationTask( ...)
>
>
>
>val templateTask =
>TemplateFileTask(workDirectory / "parameters.xml", fileoutput) set (
>.... )
>
>
>
>val scriptTask =
>SystemExecTask("bash ./emergence2/script.sh ${fileoutput}") set ( ...)
>
>
>
>
>val copyFolder = CopyFileHook(folder, workDirectory /
>"results/${seeds(0)}_${tremble}_outputs")
>
>
>
>**exploration -< (templateTask \-- scriptTask) on env hook copyFolder
>
>**
>
>
>
>I try other positions in the wf , but i have always a puzzle error :
>
>
>
>org.openmole.core.console.ScalaREPL$CompilationError: (line 85) value
>on is
>not a member of org.openmole.core.workflow.puzzle.Puzzle
>
>exploration -< templateTask on env -- scriptTask hook copyFolder // --
>scriptTask2 hook ToStringHook()
> ^
>
>
>
>Any idea ?
>
>
>
>\---
>
>Sébastien Rey Coyrehourcq
>
>Research Engineer, BAP E, UMR IDEES
>
>Sent from [Nylas N1](https://nylas.com/n1?ref=n1), the extensible, open
>source
>mail client.
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>OpenMOLE-users mailing list
>[email protected]
>http://fedex.iscpif.fr/mailman/listinfo/openmole-users
--
Jonathan Passerat-Palmbach, PhD
Research Associate
Department of Computing
Imperial College London
South Kensington Campus
Huxley Building - room 344
180 Queen's Gate
London SW7 2AZ_______________________________________________
OpenMOLE-users mailing list
[email protected]
http://fedex.iscpif.fr/mailman/listinfo/openmole-users