{"action":"created","issue":{"url":"https://api.github.com/repos/bebuch/disposer/issues/31","repository_url":"https://api.github.com/repos/bebuch/disposer","labels_url":"https://api.github.com/repos/bebuch/disposer/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/bebuch/disposer/issues/31/comments","events_url":"https://api.github.com/repos/bebuch/disposer/issues/31/events","html_url":"https://github.com/bebuch/disposer/issues/31","id":337842652,"node_id":"MDU6SXNzdWUzMzc4NDI2NTI=","number":31,"title":"Unify inputs and parameters","user":{"login":"bebuch","id":12009801,"node_id":"MDQ6VXNlcjEyMDA5ODAx","avatar_url":"https://avatars2.githubusercontent.com/u/12009801?v=4","gravatar_id":"","url":"https://api.github.com/users/bebuch","html_url":"https://github.com/bebuch","followers_url":"https://api.github.com/users/bebuch/followers","following_url":"https://api.github.com/users/bebuch/following{/other_user}","gists_url":"https://api.github.com/users/bebuch/gists{/gist_id}","starred_url":"https://api.github.com/users/bebuch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bebuch/subscriptions","organizations_url":"https://api.github.com/users/bebuch/orgs","repos_url":"https://api.github.com/users/bebuch/repos","events_url":"https://api.github.com/users/bebuch/events{/privacy}","received_events_url":"https://api.github.com/users/bebuch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-03T10:40:13Z","updated_at":"2018-07-05T19:38:58Z","closed_at":null,"author_association":"OWNER","body":"Inputs and parameters and parameters both represent data computed by a module. An input must come from another modules output. A parameter currently must be statically configured in the configuration file.\r\n\r\nIt would be very useful if a parameter could also receive its data from another modules output.\r\n\r\n## Motivation example: module `colormap`\r\n\r\nThe module takes a gray scale image and applies a color map on it. It takes the minimum and maximum gray value that should be mapped as parameter. Currently this is a static solution. If these parameters could also come from a previous module, a normalization could be done during the mapping!\r\n\r\n## Proposed changes\r\n\r\nA chain module configuration looks currently like:\r\n\r\n```ini\r\nmodule-name\r\n    parameter\r\n        param-1 = value\r\n    <-\r\n        input-1 = &existing-variable-1\r\n        input-2 = <existing-variable-2-last-use\r\n    ->\r\n        output-1 = >new-variable-3\r\n```\r\n\r\nThe operator that create, reference and remove variables must move before the assignment:\r\n\r\n```ini\r\nmodule-name\r\n    parameter\r\n        param-1 = static-value\r\n    <-\r\n        input-1 &= existing-variable-1\r\n        input-2 <= existing-variable-2-last-use\r\n    ->\r\n        output-1 >= new-variable-3\r\n```\r\n\r\nThen they can be used in parameters without interfering with a static value:\r\n\r\n```ini\r\nmodule-name\r\n    parameter\r\n        param-1 = static-value\r\n        param-2 &= existing-variable-1\r\n        param-3 <= existing-variable-2-last-use\r\n    <-\r\n        input-1 &= existing-variable-3\r\n        input-2 <= existing-variable-4-last-use\r\n    ->\r\n        output-1 >= new-variable-5\r\n```"},"comment":{"url":"https://api.github.com/repos/bebuch/disposer/issues/comments/402830865","html_url":"https://github.com/bebuch/disposer/issues/31#issuecomment-402830865","issue_url":"https://api.github.com/repos/bebuch/disposer/issues/31","id":402830865,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjgzMDg2NQ==","user":{"login":"bebuch","id":12009801,"node_id":"MDQ6VXNlcjEyMDA5ODAx","avatar_url":"https://avatars2.githubusercontent.com/u/12009801?v=4","gravatar_id":"","url":"https://api.github.com/users/bebuch","html_url":"https://github.com/bebuch","followers_url":"https://api.github.com/users/bebuch/followers","following_url":"https://api.github.com/users/bebuch/following{/other_user}","gists_url":"https://api.github.com/users/bebuch/gists{/gist_id}","starred_url":"https://api.github.com/users/bebuch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bebuch/subscriptions","organizations_url":"https://api.github.com/users/bebuch/orgs","repos_url":"https://api.github.com/users/bebuch/repos","events_url":"https://api.github.com/users/bebuch/events{/privacy}","received_events_url":"https://api.github.com/users/bebuch/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T19:38:58Z","updated_at":"2018-07-05T19:38:58Z","author_association":"OWNER","body":"and #33 "}}
{"actor":{"display_login":"bebuch"}}