obci_readmanager.signal_processing.signal.info_file_proxy module

Module implements specific info file manifest for Svarog.

What is different from info_file_proxy:

  • root name (here we haver rs:rawSignal and xmlns)
  • tags namespace (here every tag has rs: previx)
  • tags ordering (svarog requires specific tags ordering)
  • additional tags (svarog requires only and only tags described in SvarogFileWriteProxy.ORDER)
Author:
Mateusz Kruszyński <mateusz.kruszynski@gmail.com>
class obci_readmanager.signal_processing.signal.info_file_proxy.InfoDocument[source]

Bases: obci_readmanager.signal_processing.signal.generic_info_file_proxy.OpenBciDocument

Subclass xml_document, so that we can add rs: prefix before every tag name.

createElement(tagName)[source]

Redefine the method so that every added tag has ‘rs:’ prefix.

prefix = 'rs:'
class obci_readmanager.signal_processing.signal.info_file_proxy.InfoFileReadProxy(p_file_path)[source]

Bases: obci_readmanager.signal_processing.signal.generic_info_file_proxy.GenericInfoFileReadProxy

Sublassed read proxy - every get_ method need to be subclassed to add rs: prefix before tag name.

class obci_readmanager.signal_processing.signal.info_file_proxy.InfoFileWriteProxy(p_file_path)[source]

Bases: obci_readmanager.signal_processing.signal.generic_info_file_proxy.GenericInfoFileWriteProxy

Subclass write proxy.

*ensure that every element has rs: prefix *ensure tags ordering *ensure tags required by svarog

ORDER = ['rs:exportFileName', 'rs:sourceFileName', 'rs:sourceFileFormat', 'rs:samplingFrequency', 'rs:channelCount', 'rs:sampleCount', 'rs:calibration', 'rs:sampleType', 'rs:byteOrder', 'rs:pageSize', 'rs:blocksPerPage', 'rs:channelLabels', 'rs:calibrationGain', 'rs:calibrationOffset', 'rs:firstSampleTimestamp', 'rs:videoFileName', 'rs:videoFileOffset']