Skip to content

Commit 1a6863b

Browse files
committed
lint.
1 parent 5730752 commit 1a6863b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/ptwt/packets.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import collections
55
from functools import partial
66
from itertools import product
7-
from typing import TYPE_CHECKING, Callable, Dict, List, Optional, Tuple, Union, Any
7+
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union
88

99
import pywt
1010
import torch
@@ -283,9 +283,9 @@ def reconstruct(self) -> None:
283283
a reconstruction from the leafs.
284284
"""
285285
if self.maxlevel is None:
286-
self.maxlevel = pywt.dwt_maxlevel(min(
287-
self[""].shape[-2:]),
288-
self.wavelet.dec_len)
286+
self.maxlevel = pywt.dwt_maxlevel(
287+
min(self[""].shape[-2:]), self.wavelet.dec_len
288+
)
289289

290290
for level in reversed(range(self.maxlevel)):
291291
for node in self.get_natural_order(level):
@@ -341,8 +341,7 @@ def _get_wavedec(
341341

342342
def _get_waverec(
343343
self, shape: Tuple[int, ...]
344-
) -> Callable[[Any], # TODO: Get the acutal type working.
345-
torch.Tensor]:
344+
) -> Callable[[Any], torch.Tensor]: # TODO: Get the acutal type working.
346345
if self.mode == "boundary":
347346
shape = tuple(shape)
348347
if shape not in self.matrix_waverec2_dict.keys():

0 commit comments

Comments
 (0)