feat: added support to samples

This commit is contained in:
Ferrari Martino Giordano
2024-04-16 16:54:06 +02:00
parent 8e3115386b
commit 57507598cc
3 changed files with 138 additions and 58 deletions
+2 -1
View File
@@ -34,8 +34,9 @@ def signal_byte_size(sig):
nod = 1 if "NumberOfDimensions" not in sig else int(sig["NumberOfDimensions"])
nod = nod if nod > 0 else 1
noe = noe if noe > 0 else 1
nos = 1 if "Samples" not in sig else int(sig["Samples"])
bytes = type_bytes_count(sig["Type"])
tot = noe * nod
tot = noe * nod * nos
if "Ranges" in sig:
tot = 0
+1
View File
@@ -86,6 +86,7 @@ __set_keys__ = (
"Alias",
"Type",
"DataSource",
"Samples",
"NumberOfElements",
"NumberOfDimensions",
"Ranges",