Great ! Le 05/09/2016 à 11:12, Melissa Saeland a écrit : > Okay, I think I have got it. Changed to "archive.size >= 10", and it > seems to work now. > > On Mon, Sep 5, 2016 at 10:03 AM, Melissa Saeland > <[email protected] <mailto:[email protected]>> wrote: > > Hi, > > I am trying to run the code for the Master/Slave example, but keep > getting the following error: > > (line 12) Int does not take parameters > archive.size() >= 10 > > The code I am running (taken from the website): > > val i = Val[Int] > val archive = Val[Array[Int]] > val ex = ExplorationTask (i in (0 until 10)) > > val model = ScalaTask("i = i + 7") set (inputs += i, outputs += i) > > val modelCapsule = Capsule(model) > val modelSlot1 = Slot(modelCapsule) > val modelSlot2 = Slot(modelCapsule) > > val select = ScalaTask("archive = archive ++ (if (i % 3 == 0) > Seq(i) else Seq())") set( > (inputs, outputs) += (i,archive), archive := Array[Int]()) > > val selectCaps = MasterCapsule(select, archive) > val finalTask = EmptyTask() > val displayHook = ToStringHook() > > val skel = ex -< modelSlot1 -- (selectCaps hook displayHook) > val loop = selectCaps -- modelSlot2 > val terminate = selectCaps >| (Capsule (finalTask, strain=true) > hook displayHook, > "archive.size() >= 10") > > skel & loop & terminate > > Many thanks > > Melissa > > > > > _______________________________________________ > OpenMOLE-users mailing list > [email protected] > http://fedex.iscpif.fr/mailman/listinfo/openmole-users
signature.asc
Description: OpenPGP digital signature
_______________________________________________ OpenMOLE-users mailing list [email protected] http://fedex.iscpif.fr/mailman/listinfo/openmole-users
