Skip to content

Commit

Permalink
should have been list objects
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Sep 28, 2023
1 parent 3bfaf64 commit 10d97fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/asammdf/blocks/v4_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3442,7 +3442,7 @@ def convert(self, values, as_object=False, as_bytes=False, ignore_value2text_con
phys.append(ref)

x = sorted(zip(raw_vals, phys))
raw_vals = np.array([e[0] for e in x], dtype="<i8")
raw_vals = [e[0] for e in x]
phys = [e[1] for e in x]

ref = self.referenced_blocks["default_addr"]
Expand Down Expand Up @@ -3690,8 +3690,8 @@ def convert(self, values, as_object=False, as_bytes=False, ignore_value2text_con
upper = [self[f"upper_{i}"] for i in range(nr)]

x = sorted(zip(lower, upper, phys))
lower = np.array([e[0] for e in x], dtype="<i8")
upper = np.array([e[1] for e in x], dtype="<i8")
lower = [e[0] for e in x]
upper = [e[1] for e in x]
phys = [e[2] for e in x]

ref = self.referenced_blocks["default_addr"]
Expand Down

0 comments on commit 10d97fc

Please sign in to comment.