Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
felixblanke committed Jun 26, 2024
1 parent 91726be commit 6f8c1d5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_matrix_fwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ def test_boundary_transform_1d(
"""Ensure matrix fwt reconstructions are pywt compatible."""
data_torch = torch.from_numpy(data.astype(np.float64))
wavelet = pywt.Wavelet(wavelet_str)
matrix_wavedec = MatrixWavedec(wavelet, level=level, boundary_orthogonalization=boundary)
matrix_wavedec = MatrixWavedec(
wavelet, level=level, boundary_orthogonalization=boundary
)
coeffs = matrix_wavedec(data_torch)
matrix_waverec = MatrixWaverec(wavelet, boundary_orthogonalization=boundary)
rec = matrix_waverec(coeffs)
Expand Down Expand Up @@ -174,7 +176,9 @@ def test_matrix_transform_1d_rebuild(
wavelet = pywt.Wavelet(wavelet_str)
matrix_waverec = MatrixWaverec(wavelet, boundary_orthogonalization=boundary)
for level in [2, 1]:
matrix_wavedec = MatrixWavedec(wavelet, level=level, boundary_orthogonalization=boundary)
matrix_wavedec = MatrixWavedec(
wavelet, level=level, boundary_orthogonalization=boundary
)
for data in data_list:
data_torch = torch.from_numpy(data.astype(np.float64))
coeffs = matrix_wavedec(data_torch)
Expand Down

0 comments on commit 6f8c1d5

Please sign in to comment.