Skip to content

Commit 48ad03b

Browse files
committed
Change another check to is None
1 parent 4777c39 commit 48ad03b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ptwt/packets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def _get_graycode_order(self, level: int, x: str = "a", y: str = "d") -> list[st
226226
return graycode_order
227227

228228
def _recursive_dwt(self, data: torch.Tensor, level: int, path: str) -> None:
229-
if not self.maxlevel:
229+
if self.maxlevel is None:
230230
raise AssertionError
231231

232232
self.data[path] = data

0 commit comments

Comments
 (0)