{"action":"created","issue":{"url":"https://api.github.com/repos/sardana-org/sardana/issues/833","repository_url":"https://api.github.com/repos/sardana-org/sardana","labels_url":"https://api.github.com/repos/sardana-org/sardana/issues/833/labels{/name}","comments_url":"https://api.github.com/repos/sardana-org/sardana/issues/833/comments","events_url":"https://api.github.com/repos/sardana-org/sardana/issues/833/events","html_url":"https://github.com/sardana-org/sardana/issues/833","id":339837498,"node_id":"MDU6SXNzdWUzMzk4Mzc0OTg=","number":833,"title":"reconfig implementation","user":{"login":"dschick","id":13797420,"node_id":"MDQ6VXNlcjEzNzk3NDIw","avatar_url":"https://avatars1.githubusercontent.com/u/13797420?v=4","gravatar_id":"","url":"https://api.github.com/users/dschick","html_url":"https://github.com/dschick","followers_url":"https://api.github.com/users/dschick/followers","following_url":"https://api.github.com/users/dschick/following{/other_user}","gists_url":"https://api.github.com/users/dschick/gists{/gist_id}","starred_url":"https://api.github.com/users/dschick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschick/subscriptions","organizations_url":"https://api.github.com/users/dschick/orgs","repos_url":"https://api.github.com/users/dschick/repos","events_url":"https://api.github.com/users/dschick/events{/privacy}","received_events_url":"https://api.github.com/users/dschick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-10T13:15:59Z","updated_at":"2018-07-18T09:03:12Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Very night we are switching off some of our controllers but not necessarily the spock and Sardana terminals.\r\nSo currently I need to restart Sardana after I reconnected/restarted the hardware in the morning.\r\n\r\nIn SPEC there is a `reconfig `command which reconfigures all the hardware which would be equivalent to a restart of the PoolSever from within spock I guess."},"comment":{"url":"https://api.github.com/repos/sardana-org/sardana/issues/comments/405862787","html_url":"https://github.com/sardana-org/sardana/issues/833#issuecomment-405862787","issue_url":"https://api.github.com/repos/sardana-org/sardana/issues/833","id":405862787,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTg2Mjc4Nw==","user":{"login":"reszelaz","id":6735649,"node_id":"MDQ6VXNlcjY3MzU2NDk=","avatar_url":"https://avatars1.githubusercontent.com/u/6735649?v=4","gravatar_id":"","url":"https://api.github.com/users/reszelaz","html_url":"https://github.com/reszelaz","followers_url":"https://api.github.com/users/reszelaz/followers","following_url":"https://api.github.com/users/reszelaz/following{/other_user}","gists_url":"https://api.github.com/users/reszelaz/gists{/gist_id}","starred_url":"https://api.github.com/users/reszelaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reszelaz/subscriptions","organizations_url":"https://api.github.com/users/reszelaz/orgs","repos_url":"https://api.github.com/users/reszelaz/repos","events_url":"https://api.github.com/users/reszelaz/events{/privacy}","received_events_url":"https://api.github.com/users/reszelaz/received_events","type":"User","site_admin":false},"created_at":"2018-07-18T09:03:12Z","updated_at":"2018-07-18T09:03:12Z","author_association":"COLLABORATOR","body":"I think that this feature should reinitialize the controller and/or elements, basically call controller constructor and call the `DeleteDevice` and `AddDevice` methods for the given axes. Furthermore it should restore values of some attributes, I propose the memorized ones. There should be two flavors of `reconfig` - the macro could be parametrized. The difference comes from the values to be restored. In some cases it would be enough to restore the last set values, let’s call this *reconfig last*. In other cases it would be better to restore values from a snapshot done at some point, let’s call this *reconfig snap*. For the second one we would need another macro, let’s call it `saveconfig`. This macro would save the set values of the given attributes to some kind of persistence medium, it could be a file in a configurable directory.\r\n\r\nI already implemented the *reconfig last* option. It was very easy, it just calls the Tango `Init` command of the object to be reconfigured. In case we want to reconfigure a controller it also iterates over its elements and call the `Init` command for them as well. If someone is interested in this I can make a PR.\r\n"}}
{"actor":{"display_login":"reszelaz"}}