{"action":"created","issue":{"url":"https://api.github.com/repos/openmole/openmole/issues/64","labels_url":"https://api.github.com/repos/openmole/openmole/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/openmole/openmole/issues/64/comments","events_url":"https://api.github.com/repos/openmole/openmole/issues/64/events","html_url":"https://github.com/openmole/openmole/issues/64","id":77865042,"number":64,"title":"Explore samples in reverse order","user":{"login":"schuhschuh","id":975451,"avatar_url":"https://avatars.githubusercontent.com/u/975451?v=3","gravatar_id":"","url":"https://api.github.com/users/schuhschuh","html_url":"https://github.com/schuhschuh","followers_url":"https://api.github.com/users/schuhschuh/followers","following_url":"https://api.github.com/users/schuhschuh/following{/other_user}","gists_url":"https://api.github.com/users/schuhschuh/gists{/gist_id}","starred_url":"https://api.github.com/users/schuhschuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schuhschuh/subscriptions","organizations_url":"https://api.github.com/users/schuhschuh/orgs","repos_url":"https://api.github.com/users/schuhschuh/repos","events_url":"https://api.github.com/users/schuhschuh/events{/privacy}","received_events_url":"https://api.github.com/users/schuhschuh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-19T00:19:21Z","updated_at":"2015-05-19T08:49:03Z","closed_at":null,"body":"I noticed that the ExplorationTask iterates the samples in reverse order. Would be nice if this could be changed, i.e., reverted again such that the following script:\r\n\r\n```\r\nval csvFile = new java.io.File(if (args.length > 0) args(0) else \"Config/reg_f3d.csv\")\r\nval env = LocalEnvironment(1)\r\n\r\nif (csvFile.exists) {\r\n  csvFile.delete()\r\n} else {\r\n  val csvDir = csvFile.getParentFile\r\n  if (csvDir != null) csvDir.mkdirs()\r\n}\r\n\r\nval i     = Val[Int]    // Index of parameter set\r\nval ID    = Val[String] // ID of parameter set\r\nval ds    = Val[Double] // Control point spacing\r\nval be    = Val[Double] // Bending energy weight\r\nval ln    = Val[Int]    // No. of resolution levels\r\nval maxit = Val[Int]    // Maximum no. of iterations\r\n\r\nval params = {\r\n  (ds    in List(2.5)) x\r\n  (be    in List(.0, .0001, .0005, .001, .005, .01, .05)) x\r\n  (ln    in List(3, 4)) x\r\n  (maxit in List(300, 500, 1000))\r\n}\r\n\r\nval sample = ExplorationTask(params zipWithIndex i) on env\r\nval setID  = Capsule(ScalaTask(\"\"\"val ID = f\"${i + 1}%02d\" \"\"\") set (inputs += i, outputs += ID), strainer = true) on env\r\nval write  = AppendToCSVFileHook(csvFile, ID, ds, be, ln, maxit)\r\nval exec   = (sample -< (setID hook write)).start.waitUntilEnded\r\n```\r\n\r\nproduces a CSV file with ascending parameter set IDs instead of:\r\n```\r\n> cat Config/reg_f3d.csv \r\nID,ds,be,ln,maxit\r\n42,2.5,0.05,4,1000\r\n41,2.5,0.05,4,500\r\n40,2.5,0.05,4,300\r\n39,2.5,0.05,3,1000\r\n38,2.5,0.05,3,500\r\n37,2.5,0.05,3,300\r\n36,2.5,0.01,4,1000\r\n35,2.5,0.01,4,500\r\n34,2.5,0.01,4,300\r\n33,2.5,0.01,3,1000\r\n32,2.5,0.01,3,500\r\n31,2.5,0.01,3,300\r\n30,2.5,0.005,4,1000\r\n29,2.5,0.005,4,500\r\n28,2.5,0.005,4,300\r\n27,2.5,0.005,3,1000\r\n26,2.5,0.005,3,500\r\n25,2.5,0.005,3,300\r\n24,2.5,0.001,4,1000\r\n23,2.5,0.001,4,500\r\n22,2.5,0.001,4,300\r\n21,2.5,0.001,3,1000\r\n20,2.5,0.001,3,500\r\n19,2.5,0.001,3,300\r\n18,2.5,5.0E-4,4,1000\r\n17,2.5,5.0E-4,4,500\r\n16,2.5,5.0E-4,4,300\r\n15,2.5,5.0E-4,3,1000\r\n14,2.5,5.0E-4,3,500\r\n13,2.5,5.0E-4,3,300\r\n12,2.5,1.0E-4,4,1000\r\n11,2.5,1.0E-4,4,500\r\n10,2.5,1.0E-4,4,300\r\n09,2.5,1.0E-4,3,1000\r\n08,2.5,1.0E-4,3,500\r\n07,2.5,1.0E-4,3,300\r\n06,2.5,0.0,4,1000\r\n05,2.5,0.0,4,500\r\n04,2.5,0.0,4,300\r\n03,2.5,0.0,3,1000\r\n02,2.5,0.0,3,500\r\n01,2.5,0.0,3,300\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openmole/openmole/issues/comments/103401803","html_url":"https://github.com/openmole/openmole/issues/64#issuecomment-103401803","issue_url":"https://api.github.com/repos/openmole/openmole/issues/64","id":103401803,"user":{"login":"romainreuillon","id":1270995,"avatar_url":"https://avatars.githubusercontent.com/u/1270995?v=3","gravatar_id":"","url":"https://api.github.com/users/romainreuillon","html_url":"https://github.com/romainreuillon","followers_url":"https://api.github.com/users/romainreuillon/followers","following_url":"https://api.github.com/users/romainreuillon/following{/other_user}","gists_url":"https://api.github.com/users/romainreuillon/gists{/gist_id}","starred_url":"https://api.github.com/users/romainreuillon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romainreuillon/subscriptions","organizations_url":"https://api.github.com/users/romainreuillon/orgs","repos_url":"https://api.github.com/users/romainreuillon/repos","events_url":"https://api.github.com/users/romainreuillon/events{/privacy}","received_events_url":"https://api.github.com/users/romainreuillon/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T08:49:03Z","updated_at":"2015-05-19T08:49:03Z","body":"I think I found how to preserve the order in any case (mono-thread, multi-thread, remote...), I've commited it in 8b67ba2ef7ba3461c0b530e6a28ae77a25d9a57c."}}