Group usage from PyTango
|
|
---|---|
hi, I am trying to use Group facility of Tango from python. The group command methods work fine but when I use get_device method for getting a DeviceProxy reference to a given Device some DeviceProxy methods fail (Exception: _green_mode). Note that the C++ version of the same scenario works as expected. Find both versions below:
Output: direct access sys/tg_test/1 -> RUNNING Exception caught: _green_mode
Output: direct access sys/tg_test/1 -> 10 group access sys/tg_test/1 -> 10 I found some hints about green modes in PyTango documentation, but the concept is not clear to me in fact. Do you know why State() method throws an exception from Python (while it works properly in C++)? Thanks in advance, Gergely Nyiri |
|
|
---|---|
Hi Gergely, It is a bug in PyTango. Could you report it here? Meanwhile, a quick fix could be: or better:
Thanks for the report! |
|
|
---|---|
hi Vincent, thanks for your quick reply. I have entered the issue as you suggested: https://github.com/tango-cs/PyTango/issues/21 Regards, Gergely |
|
|
---|---|
Thanks! |