Protocol.from_wire#
- classmethod Protocol.from_wire()[source]#
Return the protocol that wire values stand for.
- Parameters:
entries – The declared entries:
SequencePlugin.protocol.values – Wire values by key: integer microseconds or a preset code for a time, the entry’s unit for a float, an option for a choice. A key of a config or description entry, which holds no value, is left out.
system – The scanner limits a callable preset is a function of.
- Raises:
ValueError – If a key is neither a declared entry nor a prescription entry, a time is a preset its entry does not offer, or a choice is not one of its options.