The following classes implement different MDF version3 blocks.
AttachmentBlock Class¶
-
class
asammdf.mdf4.AttachmentBlock(**kargs)¶ ATBLOCK class
When adding new attachments only embedded attachemnts are allowed, with keyword argument data of type bytes
Methods
clearcopyGeneric (shallow and deep) copying operations. extractfromkeysgetitemskeyspoppopitemsetdefaultupdatevalues
Channel Class¶
-
class
asammdf.mdf4.Channel(**kargs)¶ CNBLOCK class
Methods
clearcopyGeneric (shallow and deep) copying operations. fromkeysgetitemskeyspoppopitemsetdefaultupdatevalues
ChannelConversion Class¶
-
class
asammdf.mdf4.ChannelConversion(**kargs)¶ CCBLOCK class
Methods
clearcopyGeneric (shallow and deep) copying operations. fromkeysgetitemskeyspoppopitemsetdefaultupdatevalues
ChannelGroup Class¶
-
class
asammdf.mdf4.ChannelGroup(**kargs)¶ CGBLOCK class
Methods
clearcopyGeneric (shallow and deep) copying operations. fromkeysgetitemskeyspoppopitemsetdefaultupdatevalues
DataGroup Class¶
-
class
asammdf.mdf4.DataGroup(**kargs)¶ DGBLOCK class
Methods
clearcopyGeneric (shallow and deep) copying operations. fromkeysgetitemskeyspoppopitemsetdefaultupdatevalues
DataList Class¶
-
class
asammdf.mdf4.DataList(**kargs)¶ DLBLOCK class
Methods
clearcopyGeneric (shallow and deep) copying operations. fromkeysgetitemskeyspoppopitemsetdefaultupdatevalues
DataBlock Class¶
-
class
asammdf.mdf4.DataBlock(**kargs)¶ DTBLOCK class
Parameters: address : int
DTBLOCK address inside the file
file_stream : int
file handle
Methods
clearcopyGeneric (shallow and deep) copying operations. fromkeysgetitemskeyspoppopitemsetdefaultupdatevalues
FileIdentificationBlock Class¶
-
class
asammdf.mdf4.FileIdentificationBlock(**kargs)¶ IDBLOCK class
Methods
clearcopyGeneric (shallow and deep) copying operations. fromkeysgetitemskeyspoppopitemsetdefaultupdatevalues
HeaderBlock Class¶
-
class
asammdf.mdf4.HeaderBlock(**kargs)¶ HDBLOCK class
Methods
clearcopyGeneric (shallow and deep) copying operations. fromkeysgetitemskeyspoppopitemsetdefaultupdatevalues
SourceInformation Class¶
-
class
asammdf.mdf4.SourceInformation(**kargs)¶ SIBLOCK class
Methods
clearcopyGeneric (shallow and deep) copying operations. fromkeysgetitemskeyspoppopitemsetdefaultupdatevalues
FileHistory Class¶
-
class
asammdf.mdf4.FileHistory(**kargs)¶ FHBLOCK class
Methods
clearcopyGeneric (shallow and deep) copying operations. fromkeysgetitemskeyspoppopitemsetdefaultupdatevalues
TextBlock Class¶
-
class
asammdf.mdf4.TextBlock(**kargs)¶ common TXBLOCK and MDBLOCK class
Methods
clearcopyGeneric (shallow and deep) copying operations. from_textfromkeysgetitemskeyspoppopitemsetdefaultupdatevalues-
classmethod
from_text(text, meta=False)¶ Create a TextBlock from a str or bytes
Parameters: text : str | bytes
input text
meta : bool
enable meta text block
Examples
>>> t = TextBlock.from_text(b'speed') >>> t['id'] b'##TX' >>> t.text_str speed >>> t = TextBlock.from_text('mass', meta=True) >>> t['id'] b'##MD'
-
classmethod