{"action":"opened","issue":{"url":"https://api.github.com/repos/sardana-org/sardana/issues/377","repository_url":"https://api.github.com/repos/sardana-org/sardana","labels_url":"https://api.github.com/repos/sardana-org/sardana/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/sardana-org/sardana/issues/377/comments","events_url":"https://api.github.com/repos/sardana-org/sardana/issues/377/events","html_url":"https://github.com/sardana-org/sardana/issues/377","id":192887191,"number":377,"title":"Bug on relmaclib","user":{"login":"rhomspuron","id":10775781,"avatar_url":"https://avatars.githubusercontent.com/u/10775781?v=3","gravatar_id":"","url":"https://api.github.com/users/rhomspuron","html_url":"https://github.com/rhomspuron","followers_url":"https://api.github.com/users/rhomspuron/followers","following_url":"https://api.github.com/users/rhomspuron/following{/other_user}","gists_url":"https://api.github.com/users/rhomspuron/gists{/gist_id}","starred_url":"https://api.github.com/users/rhomspuron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhomspuron/subscriptions","organizations_url":"https://api.github.com/users/rhomspuron/orgs","repos_url":"https://api.github.com/users/rhomspuron/repos","events_url":"https://api.github.com/users/rhomspuron/events{/privacy}","received_events_url":"https://api.github.com/users/rhomspuron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-01T16:02:19Z","updated_at":"2016-12-01T16:02:19Z","closed_at":null,"body":"It you try to reload a library of macros and there is a macro with a wrong definition of the parameters, the macro relmaclib does not show the error, but on the MacroServer log you can see it. \r\n\r\nMacro code:\r\n<pre>\r\nclass dynaGO(Macro):\r\n       param_def = [\r\n      ['temperature', Type.Float,None,],\r\n      ['temperature_old', Type.Float,None,]\r\n        ]\r\n\r\n     def run(self, temperature, temperature_old):\r\n       temp = temperature\r\n       self.execMacro('dynRamp %f' %temp)\r\n     ...\r\n</pre>\r\n\r\nMacroServer Log:\r\n<pre>\r\nSardanaTP.W005 DEBUG    2016-12-01 16:50:11,880 MS_BL22.MacroManager: Adding macro class dynaGO\r\nSardanaTP.W005 ERROR    2016-12-01 16:50:11,882 MS_BL22.MacroManager: Error adding macro dynaGO\r\nSardanaTP.W005 DEBUG    2016-12-01 16:50:11,882 MS_BL22.MacroManager: Details:\r\nTraceback (most recent call last):\r\n  File \"/homelocal/sicilia/lib/python/site-packages/sardana/macroserver/msmacromanager.py\", line 502, in reloadMacroLib\r\n    self.addMacro(macro_lib, macro)\r\n  File \"/homelocal/sicilia/lib/python/site-packages/sardana/macroserver/msmacromanager.py\", line 514, in addMacro\r\n    return add(macro_lib, macro)\r\n  File \"/homelocal/sicilia/lib/python/site-packages/sardana/macroserver/msmacromanager.py\", line 523, in addMacroClass\r\n    macro_class = MacroClass(**params)\r\n  File \"/homelocal/sicilia/lib/python/site-packages/sardana/macroserver/msmetamacro.py\", line 238, in __init__\r\n    Parameterizable.__init__(self)\r\n  File \"/homelocal/sicilia/lib/python/site-packages/sardana/macroserver/msmetamacro.py\", line 118, in __init__\r\n    self._parameter = self.build_parameter()\r\n  File \"/homelocal/sicilia/lib/python/site-packages/sardana/macroserver/msmetamacro.py\", line 137, in build_parameter\r\n    return self._build_parameter(self.get_parameter_definition())\r\n  File \"/homelocal/sicilia/lib/python/site-packages/sardana/macroserver/msmetamacro.py\", line 168, in _build_parameter\r\n    ret_p['description'] = p[3]\r\nIndexError: list index out of range\r\nSardanaTP.W005 DEBUG    2016-12-01 16:50:11,882 MS_BL22.MacroManager: Adding macro class dynaVtuneClaess\r\nSardanaTP.W005 DEBUG    2016-12-01 16:50:11,884 MS_BL22.MacroManager: Adding macro class energy2K\r\nSardanaTP.W005 DEBUG    2016-12-01 16:50:11,884 MS_BL22.MacroManager: Adding macro class hecryo\r\nSardanaTP.W005 DEBUG    2016-12-01 16:50:11,885 MS_BL22.MacroManager: Adding macro class mono_change\r\nSardanaTP.W005 DEBUG    2016-12-01 16:50:11,887 MS_BL22.MacroManager: Adding macro class rcs\r\nSardanaTP.W005 DEBUG    2016-12-01 16:50:11,888 MS_BL22.MacroManager: Adding macro class set_rcs\r\nSardanaTP.W005 DEBUG    2016-12-01 16:50:11,888 MS_BL22.MacroManager: Adding macro class time_constKscan\r\nSardanaTP.W005 OUTPUT   2016-12-01 16:50:11,891 BL22/DOOR/01.Macro[relmaclib]: claess_utils successfully (re)loaded (found 16 macros)\r\nSardanaTP.W005 DEBUG    2016-12-01 16:50:11,892 BL22/DOOR/01.MacroExecutor: [ END ] runMacro Macro 'relmaclib(claess_utils) -> d7d229d6-b7dd-11e6-a884-001999eaf6e9'\r\nSardanaTP.W005 DEBUG    2016-12-01 16:50:11,892 BL22/DOOR/01.MacroExecutor: Job ended (stopped=False, aborted=False)\r\n/tmp/tango-sicilia/MacroServer/bl22/log.txt lines 59870-59902/59902 (END)\r\n</pre>"}}
{"actor":{"display_login":"rhomspuron"}}