feat: added support to samples
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user