-
Notifications
You must be signed in to change notification settings - Fork 52
Element names can only contain certain characters (A-z, 0-9, and _ ) #1604
Comments
Hi @TacHuynh, Your case is quite special cause your Pool name contains a minus sign
Here you create another Hope this helps, |
Thanks for the work around. Will try without the "-" in "lab-02". |
Actually, this is a more general problem. Note, these names are not problematic when passing as macro parameters:
It is still possible to access these elements in the following, not user friendly, mode:
Anyone knows an easier way to access these variables in IPython? If there is no, then maybe we should think of restricting the element names to use only certain characters (A-z, 0-9, and _ ). |
I guess this is a little shorter:
But unless it's quite important to allow this, I would think it's less confusing to just not allow defining things in spock that can't also be (easily) accessed from there. |
Thanks @johanfforsberg for the shorter way of accessing these elements. I agree on restricting the character set for the element names. Are there any other opinions before we start working on it? |
Follow the Sardana training on GitHub
I can insert "MacroPath" to _MACRO_SERVER
Door_lab-02_1 [20]: _MACRO_SERVER.put_property({"MacroPath": ['C:/Users/Rdlab/Desktop/SardanaDryWellTemperatureController/macro']})
Door_lab-02_1 [21]: _MACRO_SERVER.get_property("MacroPath")
Result [21]: {'MacroPath': ['C:/Users/Rdlab/Desktop/SardanaDryWellTemperatureController/macro']}
I have problem for the Pool "PoolPath" insert:
Door_lab-02_1 [26]: Pool_lab-02_1.put_property({"PoolPath":['C:/Users/Rdlab/Desktop/SardanaDryWellTemperatureController/ctrl']})
SyntaxError: invalid syntax (, line 1)
(For more detailed information type: python_error)
The text was updated successfully, but these errors were encountered: