Encoding and decoding of bci-xml packages.
Represents a signal from the BCI network.
A BciSignal object can be translated to XML and vice-versa.
Message could not be decoded.
Something message cound not be encoded.
Our own exception type.
Parses XML strings and returns BciSignal containing the data of the signal.
decoder = XmlDecoder() try:
bcisignal = decoder.decode_packet(xml)
Parse the XML string and return a BciSignal.
A DecodingError is raised when the parsing of the packet failed.
Generates an XML string from a BciSignal object.
enc = XmlEncoder() try:
xml = enc.encode_packet(bcisignal)
Generates an XML packet from a BciSignal object.
An EncodingError is raised if the encoding failed.
Module author: Bastian Venthur <venthur@cs.tu-berlin.de>