Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
fix(test_decomposition_realtime): adjust concat statement
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrub committed Mar 3, 2020
1 parent 3138d51 commit 947ed21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_propagate_DWT.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ def test_decomposition_realtime():
coeffs_b, Ucoeffs_b, ol_b, z_b = wave_dec_realtime(x_batch, Ux_batch, ld, hd, n=2, level_states=z_b)
coeffs_list.append(coeffs_b)
Ucoeffs_list.append(Ucoeffs_b)
coeffs_b = np.concatenate(coeffs_list, axis=0)
Ucoeffs_b = np.concatenate(Ucoeffs_list, axis=0)

coeffs_b = [np.concatenate([coeffs[level] for coeffs in coeffs_list], axis=0) for level in range(len(coeffs_list[0]))]
Ucoeffs_b = [np.concatenate([Ucoeffs[level] for Ucoeffs in Ucoeffs_list], axis=0) for level in range(len(Ucoeffs_list[0]))]

# compare output depth
assert len(coeffs_a) == len(coeffs_b)
Expand Down

0 comments on commit 947ed21

Please sign in to comment.