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
clear
copy
Generic (shallow and deep) copying operations. extract
fromkeys
get
items
keys
pop
popitem
setdefault
update
values
Channel Class¶
-
class
asammdf.mdf4.
Channel
(**kargs)¶ CNBLOCK class
Methods
clear
copy
Generic (shallow and deep) copying operations. fromkeys
get
items
keys
pop
popitem
setdefault
update
values
ChannelConversion Class¶
-
class
asammdf.mdf4.
ChannelConversion
(**kargs)¶ CCBLOCK class
Methods
clear
copy
Generic (shallow and deep) copying operations. fromkeys
get
items
keys
pop
popitem
setdefault
update
values
ChannelGroup Class¶
-
class
asammdf.mdf4.
ChannelGroup
(**kargs)¶ CGBLOCK class
Methods
clear
copy
Generic (shallow and deep) copying operations. fromkeys
get
items
keys
pop
popitem
setdefault
update
values
DataGroup Class¶
-
class
asammdf.mdf4.
DataGroup
(**kargs)¶ DGBLOCK class
Methods
clear
copy
Generic (shallow and deep) copying operations. fromkeys
get
items
keys
pop
popitem
setdefault
update
values
DataList Class¶
-
class
asammdf.mdf4.
DataList
(**kargs)¶ DLBLOCK class
Methods
clear
copy
Generic (shallow and deep) copying operations. fromkeys
get
items
keys
pop
popitem
setdefault
update
values
DataBlock Class¶
-
class
asammdf.mdf4.
DataBlock
(**kargs)¶ DTBLOCK class
Parameters: address : int
DTBLOCK address inside the file
file_stream : int
file handle
Methods
clear
copy
Generic (shallow and deep) copying operations. fromkeys
get
items
keys
pop
popitem
setdefault
update
values
FileIdentificationBlock Class¶
-
class
asammdf.mdf4.
FileIdentificationBlock
(**kargs)¶ IDBLOCK class
Methods
clear
copy
Generic (shallow and deep) copying operations. fromkeys
get
items
keys
pop
popitem
setdefault
update
values
HeaderBlock Class¶
-
class
asammdf.mdf4.
HeaderBlock
(**kargs)¶ HDBLOCK class
Methods
clear
copy
Generic (shallow and deep) copying operations. fromkeys
get
items
keys
pop
popitem
setdefault
update
values
SourceInformation Class¶
-
class
asammdf.mdf4.
SourceInformation
(**kargs)¶ SIBLOCK class
Methods
clear
copy
Generic (shallow and deep) copying operations. fromkeys
get
items
keys
pop
popitem
setdefault
update
values
FileHistory Class¶
-
class
asammdf.mdf4.
FileHistory
(**kargs)¶ FHBLOCK class
Methods
clear
copy
Generic (shallow and deep) copying operations. fromkeys
get
items
keys
pop
popitem
setdefault
update
values
TextBlock Class¶
-
class
asammdf.mdf4.
TextBlock
(**kargs)¶ common TXBLOCK and MDBLOCK class
Methods
clear
copy
Generic (shallow and deep) copying operations. from_text
fromkeys
get
items
keys
pop
popitem
setdefault
update
values
-
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