We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c87a7b6 commit f9f0adfCopy full SHA for f9f0adf
filter_functions/basis.py
@@ -281,7 +281,7 @@ def istraceless(self) -> bool:
281
if self._istraceless is None:
282
trace = np.einsum('...jj', self)
283
trace = util.remove_float_errors(trace, self.d**2)
284
- nonzero = trace.nonzero()
+ nonzero = np.atleast_1d(trace).nonzero()
285
if nonzero[0].size == 0:
286
self._istraceless = True
287
elif nonzero[0].size == 1:
tests/test_basis.py
@@ -28,7 +28,6 @@
28
import numpy as np
29
import pytest
30
from filter_functions import util
31
-from scipy import stats, linalg
32
from sparse import COO
33
from tests import testutil
34
from tests.testutil import rng
0 commit comments