{"action":"closed","issue":{"url":"https://api.github.com/repos/larics/assisi-python/issues/14","repository_url":"https://api.github.com/repos/larics/assisi-python","labels_url":"https://api.github.com/repos/larics/assisi-python/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/larics/assisi-python/issues/14/comments","events_url":"https://api.github.com/repos/larics/assisi-python/issues/14/events","html_url":"https://github.com/larics/assisi-python/issues/14","id":69650139,"number":14,"title":"Cannot (easily) specify a subset of resources to execute with deployment tool","user":{"login":"rmm-fcul","id":7782039,"avatar_url":"https://avatars.githubusercontent.com/u/7782039?v=3","gravatar_id":"","url":"https://api.github.com/users/rmm-fcul","html_url":"https://github.com/rmm-fcul","followers_url":"https://api.github.com/users/rmm-fcul/followers","following_url":"https://api.github.com/users/rmm-fcul/following{/other_user}","gists_url":"https://api.github.com/users/rmm-fcul/gists{/gist_id}","starred_url":"https://api.github.com/users/rmm-fcul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmm-fcul/subscriptions","organizations_url":"https://api.github.com/users/rmm-fcul/orgs","repos_url":"https://api.github.com/users/rmm-fcul/repos","events_url":"https://api.github.com/users/rmm-fcul/events{/privacy}","received_events_url":"https://api.github.com/users/rmm-fcul/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2015-04-20T18:27:26Z","updated_at":"2016-08-18T15:32:00Z","closed_at":"2016-08-18T15:32:00Z","body":"Let's say I want to modify the 3x3 example to only use the first two casus, casu-001, casu-002. I modify the file \"local.dep\" (sim-01 just has entries for these 2 casus). \r\n\r\nThe errors are as follows:\r\n\r\n- deploy.py stage assumes that all elements of the arena are present in the .dep file, and so breaks if they are not present.\r\n```\r\nTraceback (most recent call last):\r\n  File \"...assisipy/deploy.py\", line 185, in <module>\r\n    project.deploy()\r\n  File \"...assisipy/deploy.py\", line 156, in deploy\r\n    self.prepare()\r\n  File \"...assisipy/deploy.py\", line 117, in prepare\r\n    shutil.copy(os.path.join(self.project_root,self.dep[layer][casu]['controller']),'.')\r\nKeyError: 'casu-003'\r\n\r\n```\r\n\r\nA possible workaround - if really needed: \r\n\r\n* it is possible to work around if we run deployment with a complete element list (to generate all the files), and then execute assisirun.py with a partial .dep file.  However, this is not an elegant solution because it requires maintenance of two .assisi files or editing during the workflow, and if the reason some were omitted is due to hardware use (for a simultaneous experiment, or temporariliy unavailable casu), the deployment could also fail.\r\n\r\nremark on simulation side:\r\n\r\n* sim.py stage also spawns everything in the .arena file (it is only passed the arena file and not the .assisi setup file so clearly it can't know; whether it should follow the deployment restriction is not clear to me)."}}
{"actor":{"display_login":"dmiklic"}}