Protocol.from_wire#
- classmethod Protocol.from_wire()[source]#
Return the protocol that wire values stand for.
- Parameters:
entries (Mapping[ProtocolKey, Entry]) – The declared entries:
SequencePlugin.protocol.values (Mapping[ProtocolKey, Any]) – 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 (pypulseqpp.Opts) – 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, a choice is not one of its options, or an option names another choice than the one the plugin is loaded with.