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(() -> None.  Remove all items from D.)
copy(() -> a shallow copy of D)
extract()
fromkeys($type, iterable[, value]) Returns a new dict with keys from iterable and values equal to value.
get((k[,d]) -> D[k] if k in D, …)
items(…)
keys(…)
pop((k[,d]) -> v, …) If key is not found, d is returned if given, otherwise KeyError is raised
popitem(() -> (k, v), …) 2-tuple; but raise KeyError if D is empty.
setdefault((k[,d]) -> D.get(k,d), …)
update(([E, …) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
values(…)

Channel Class

class asammdf.mdf4.Channel(**kargs)

CNBLOCK class

Methods

clear(() -> None.  Remove all items from D.)
copy(() -> a shallow copy of D)
fromkeys($type, iterable[, value]) Returns a new dict with keys from iterable and values equal to value.
get((k[,d]) -> D[k] if k in D, …)
items(…)
keys(…)
pop((k[,d]) -> v, …) If key is not found, d is returned if given, otherwise KeyError is raised
popitem(() -> (k, v), …) 2-tuple; but raise KeyError if D is empty.
setdefault((k[,d]) -> D.get(k,d), …)
update(([E, …) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
values(…)

ChannelConversion Class

class asammdf.mdf4.ChannelConversion(**kargs)

CCBLOCK class

Methods

clear(() -> None.  Remove all items from D.)
copy(() -> a shallow copy of D)
fromkeys($type, iterable[, value]) Returns a new dict with keys from iterable and values equal to value.
get((k[,d]) -> D[k] if k in D, …)
items(…)
keys(…)
pop((k[,d]) -> v, …) If key is not found, d is returned if given, otherwise KeyError is raised
popitem(() -> (k, v), …) 2-tuple; but raise KeyError if D is empty.
setdefault((k[,d]) -> D.get(k,d), …)
update(([E, …) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
values(…)

ChannelGroup Class

class asammdf.mdf4.ChannelGroup(**kargs)

CGBLOCK class

Methods

clear(() -> None.  Remove all items from D.)
copy(() -> a shallow copy of D)
fromkeys($type, iterable[, value]) Returns a new dict with keys from iterable and values equal to value.
get((k[,d]) -> D[k] if k in D, …)
items(…)
keys(…)
pop((k[,d]) -> v, …) If key is not found, d is returned if given, otherwise KeyError is raised
popitem(() -> (k, v), …) 2-tuple; but raise KeyError if D is empty.
setdefault((k[,d]) -> D.get(k,d), …)
update(([E, …) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
values(…)

DataGroup Class

class asammdf.mdf4.DataGroup(**kargs)

DGBLOCK class

Methods

clear(() -> None.  Remove all items from D.)
copy(() -> a shallow copy of D)
fromkeys($type, iterable[, value]) Returns a new dict with keys from iterable and values equal to value.
get((k[,d]) -> D[k] if k in D, …)
items(…)
keys(…)
pop((k[,d]) -> v, …) If key is not found, d is returned if given, otherwise KeyError is raised
popitem(() -> (k, v), …) 2-tuple; but raise KeyError if D is empty.
setdefault((k[,d]) -> D.get(k,d), …)
update(([E, …) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
values(…)

DataList Class

class asammdf.mdf4.DataList(**kargs)

DLBLOCK class

Methods

clear(() -> None.  Remove all items from D.)
copy(() -> a shallow copy of D)
fromkeys($type, iterable[, value]) Returns a new dict with keys from iterable and values equal to value.
get((k[,d]) -> D[k] if k in D, …)
items(…)
keys(…)
pop((k[,d]) -> v, …) If key is not found, d is returned if given, otherwise KeyError is raised
popitem(() -> (k, v), …) 2-tuple; but raise KeyError if D is empty.
setdefault((k[,d]) -> D.get(k,d), …)
update(([E, …) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
values(…)

DataBlock Class

class asammdf.mdf4.DataBlock(**kargs)

DTBLOCK class

Parameters:

address : int

DTBLOCK address inside the file

stream : int

file handle

Methods

clear(() -> None.  Remove all items from D.)
copy(() -> a shallow copy of D)
fromkeys($type, iterable[, value]) Returns a new dict with keys from iterable and values equal to value.
get((k[,d]) -> D[k] if k in D, …)
items(…)
keys(…)
pop((k[,d]) -> v, …) If key is not found, d is returned if given, otherwise KeyError is raised
popitem(() -> (k, v), …) 2-tuple; but raise KeyError if D is empty.
setdefault((k[,d]) -> D.get(k,d), …)
update(([E, …) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
values(…)

FileIdentificationBlock Class

class asammdf.mdf4.FileIdentificationBlock(**kargs)

IDBLOCK class

Methods

clear(() -> None.  Remove all items from D.)
copy(() -> a shallow copy of D)
fromkeys($type, iterable[, value]) Returns a new dict with keys from iterable and values equal to value.
get((k[,d]) -> D[k] if k in D, …)
items(…)
keys(…)
pop((k[,d]) -> v, …) If key is not found, d is returned if given, otherwise KeyError is raised
popitem(() -> (k, v), …) 2-tuple; but raise KeyError if D is empty.
setdefault((k[,d]) -> D.get(k,d), …)
update(([E, …) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
values(…)

HeaderBlock Class

class asammdf.mdf4.HeaderBlock(**kargs)

HDBLOCK class

Methods

clear(() -> None.  Remove all items from D.)
copy(() -> a shallow copy of D)
fromkeys($type, iterable[, value]) Returns a new dict with keys from iterable and values equal to value.
get((k[,d]) -> D[k] if k in D, …)
items(…)
keys(…)
pop((k[,d]) -> v, …) If key is not found, d is returned if given, otherwise KeyError is raised
popitem(() -> (k, v), …) 2-tuple; but raise KeyError if D is empty.
setdefault((k[,d]) -> D.get(k,d), …)
update(([E, …) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
values(…)

SourceInformation Class

class asammdf.mdf4.SourceInformation(**kargs)

SIBLOCK class

Methods

clear(() -> None.  Remove all items from D.)
copy(() -> a shallow copy of D)
fromkeys($type, iterable[, value]) Returns a new dict with keys from iterable and values equal to value.
get((k[,d]) -> D[k] if k in D, …)
items(…)
keys(…)
pop((k[,d]) -> v, …) If key is not found, d is returned if given, otherwise KeyError is raised
popitem(() -> (k, v), …) 2-tuple; but raise KeyError if D is empty.
setdefault((k[,d]) -> D.get(k,d), …)
update(([E, …) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
values(…)

FileHistory Class

class asammdf.mdf4.FileHistory(**kargs)

FHBLOCK class

Methods

clear(() -> None.  Remove all items from D.)
copy(() -> a shallow copy of D)
fromkeys($type, iterable[, value]) Returns a new dict with keys from iterable and values equal to value.
get((k[,d]) -> D[k] if k in D, …)
items(…)
keys(…)
pop((k[,d]) -> v, …) If key is not found, d is returned if given, otherwise KeyError is raised
popitem(() -> (k, v), …) 2-tuple; but raise KeyError if D is empty.
setdefault((k[,d]) -> D.get(k,d), …)
update(([E, …) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
values(…)

TextBlock Class

class asammdf.mdf4.TextBlock(**kargs)

common TXBLOCK and MDBLOCK class

Methods

clear(() -> None.  Remove all items from D.)
copy(() -> a shallow copy of D)
fromkeys($type, iterable[, value]) Returns a new dict with keys from iterable and values equal to value.
get((k[,d]) -> D[k] if k in D, …)
items(…)
keys(…)
pop((k[,d]) -> v, …) If key is not found, d is returned if given, otherwise KeyError is raised
popitem(() -> (k, v), …) 2-tuple; but raise KeyError if D is empty.
setdefault((k[,d]) -> D.get(k,d), …)
update(([E, …) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
values(…)