{"action":"created","issue":{"url":"https://api.github.com/repos/vatlab/SoS/issues/1068","repository_url":"https://api.github.com/repos/vatlab/SoS","labels_url":"https://api.github.com/repos/vatlab/SoS/issues/1068/labels{/name}","comments_url":"https://api.github.com/repos/vatlab/SoS/issues/1068/comments","events_url":"https://api.github.com/repos/vatlab/SoS/issues/1068/events","html_url":"https://github.com/vatlab/SoS/issues/1068","id":364749013,"node_id":"MDU6SXNzdWUzNjQ3NDkwMTM=","number":1068,"title":"Implicit share of output","user":{"login":"BoPeng","id":9889312,"node_id":"MDQ6VXNlcjk4ODkzMTI=","avatar_url":"https://avatars1.githubusercontent.com/u/9889312?v=4","gravatar_id":"","url":"https://api.github.com/users/BoPeng","html_url":"https://github.com/BoPeng","followers_url":"https://api.github.com/users/BoPeng/followers","following_url":"https://api.github.com/users/BoPeng/following{/other_user}","gists_url":"https://api.github.com/users/BoPeng/gists{/gist_id}","starred_url":"https://api.github.com/users/BoPeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoPeng/subscriptions","organizations_url":"https://api.github.com/users/BoPeng/orgs","repos_url":"https://api.github.com/users/BoPeng/repos","events_url":"https://api.github.com/users/BoPeng/events{/privacy}","received_events_url":"https://api.github.com/users/BoPeng/received_events","type":"User","site_admin":false},"labels":[{"id":325435541,"node_id":"MDU6TGFiZWwzMjU0MzU1NDE=","url":"https://api.github.com/repos/vatlab/SoS/labels/discussion","name":"discussion","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":{"login":"gaow","id":917985,"node_id":"MDQ6VXNlcjkxNzk4NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/917985?v=4","gravatar_id":"","url":"https://api.github.com/users/gaow","html_url":"https://github.com/gaow","followers_url":"https://api.github.com/users/gaow/followers","following_url":"https://api.github.com/users/gaow/following{/other_user}","gists_url":"https://api.github.com/users/gaow/gists{/gist_id}","starred_url":"https://api.github.com/users/gaow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaow/subscriptions","organizations_url":"https://api.github.com/users/gaow/orgs","repos_url":"https://api.github.com/users/gaow/repos","events_url":"https://api.github.com/users/gaow/events{/privacy}","received_events_url":"https://api.github.com/users/gaow/received_events","type":"User","site_admin":false},"assignees":[{"login":"gaow","id":917985,"node_id":"MDQ6VXNlcjkxNzk4NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/917985?v=4","gravatar_id":"","url":"https://api.github.com/users/gaow","html_url":"https://github.com/gaow","followers_url":"https://api.github.com/users/gaow/followers","following_url":"https://api.github.com/users/gaow/following{/other_user}","gists_url":"https://api.github.com/users/gaow/gists{/gist_id}","starred_url":"https://api.github.com/users/gaow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaow/subscriptions","organizations_url":"https://api.github.com/users/gaow/orgs","repos_url":"https://api.github.com/users/gaow/repos","events_url":"https://api.github.com/users/gaow/events{/privacy}","received_events_url":"https://api.github.com/users/gaow/received_events","type":"User","site_admin":false}],"milestone":null,"comments":24,"created_at":"2018-09-28T05:45:52Z","updated_at":"2018-10-05T17:14:52Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"There are currently two ways to use step of one step in another.\r\n\r\nIn a forward-style, `step_output` is explicitly `shared`:\r\n```\r\n[step_A: shared={'a_output': 'step_output'}]\r\n\r\n[step_B]\r\ninput: a_output\r\n```\r\nIn a makefile style, `step_output` is provided to others:\r\n```\r\n[step_A: provides='a_output']\r\n\r\n[step_B]\r\ninput: 'a_output'\r\n```\r\n\r\nSince `shared={'a_output': 'step_output'}` can be used quite often, it makes sense to provide an easier way to access it, something like:\r\n\r\n```\r\n[step_A]\r\n\r\n[step_B]\r\ninput: step_A_output\r\n```"},"comment":{"url":"https://api.github.com/repos/vatlab/SoS/issues/comments/427436685","html_url":"https://github.com/vatlab/SoS/issues/1068#issuecomment-427436685","issue_url":"https://api.github.com/repos/vatlab/SoS/issues/1068","id":427436685,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzQzNjY4NQ==","user":{"login":"gaow","id":917985,"node_id":"MDQ6VXNlcjkxNzk4NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/917985?v=4","gravatar_id":"","url":"https://api.github.com/users/gaow","html_url":"https://github.com/gaow","followers_url":"https://api.github.com/users/gaow/followers","following_url":"https://api.github.com/users/gaow/following{/other_user}","gists_url":"https://api.github.com/users/gaow/gists{/gist_id}","starred_url":"https://api.github.com/users/gaow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaow/subscriptions","organizations_url":"https://api.github.com/users/gaow/orgs","repos_url":"https://api.github.com/users/gaow/repos","events_url":"https://api.github.com/users/gaow/events{/privacy}","received_events_url":"https://api.github.com/users/gaow/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T17:14:52Z","updated_at":"2018-10-05T17:14:52Z","author_association":"MEMBER","body":"I still think it is more confusing to introduce `paired`. I think we should not worry about sequential `group_by` because it sounds like a poor workflow design when people has to use that feature -- can you think of a compelling example in practice one has to use sequential `group_by`? On the contrary arbitrary pair-wise grouping (not just 2) is quite  common -- imaging in a workflow step in addition to the one main output one focuses on, there are also additional files for diagnostics eg plots or log files, of arbitrary number, that might be relevant to some of the downstream steps. Then the `group_by=[(`step_1`, 2), ('step_2`, 5)]` sounds very natural to me and I can imaging actually starting to track some of my important diagnostics files that way by making them actual output of steps."}}
{"actor":{"display_login":"gaow"}}