Skip to content

Commit

Permalink
check sig_out is array, needed for loading multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
ggmarshall committed Nov 13, 2023
1 parent 7dfaf79 commit 716f418
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lgdo/compression/varlen.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ def decode(
# convert vector of vectors to array of equal sized arrays
# can now decode on the 2D matrix together with number of bytes to read per row
_, siglen = decode(
(sig_in.encoded_data.to_aoesa(preserve_dtype=True).nda, nbytes), sig_out.nda
(sig_in.encoded_data.to_aoesa(preserve_dtype=True).nda, nbytes),
sig_out if isinstance(sig_out, np.ndarray) else sig_out.nda,
)

# sanity check
Expand Down

0 comments on commit 716f418

Please sign in to comment.