Skip to content

Commit

Permalink
minor corections in the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Costin committed Feb 1, 2024
1 parent 7ecf1fe commit e4b2434
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mxcubecore/HardwareObjects/TangoShutter.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<command type="tango" name="Open">Open</command>
<command type="tango" name="Close">Close</command>
<channel type="tango" name="State" polling="1000">State</channel>
<values>{"OPEN": "MYOPEN", "NEWSTATE": ["HardwareObjectState.BUSY", "MYSTATE"]}</values>
<values>{"OPEN": "MYOPEN", "NEWSTATE": ["MYSTATE", "BUSY"]}</values>
</object>
In the example the <values> property contains a dictionary that redefines or
Expand All @@ -41,6 +41,7 @@
list. The new state is added to both the VALUES and the SPECIFIC_STATES Enum.
Attention:
- do not use tuples or the python json parser will fail!
- make sure only double quotes are used inside the values dictionary. No single quotes (') are allowed !
- the second element of the list should be a standard HardwareObjectState name
(UNKNOWN, WARNING, BUSY, READY, FAULT, OFF - see in BaseHardwareObjects.py)!
The <values> property is optional.
Expand Down

0 comments on commit e4b2434

Please sign in to comment.