Skip to content

Commit 6cf86ac

Browse files
committed
cleaned up use of ArrayImageSource.
1 parent 989fce6 commit 6cf86ac

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_adaptive_support.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import pytest
77

88
from aspire.denoising import adaptive_support
9-
from aspire.image import Image
109
from aspire.source import ArrayImageSource
1110
from aspire.utils import gaussian_2d
1211

@@ -37,7 +36,7 @@ def testAdaptiveSupportBadThreshold(self):
3736
"""
3837

3938
discs = np.empty((self.size, self.size)) # Intentional Dummy Data
40-
img_src = ArrayImageSource(Image(discs))
39+
img_src = ArrayImageSource(discs)
4140

4241
with pytest.raises(ValueError, match=r"Given energy_threshold.*"):
4342
_ = adaptive_support(img_src, -0.5)
@@ -69,7 +68,7 @@ def test_adaptive_support_F(self):
6968
)
7069

7170
# Setup ImageSource like objects
72-
img_src = ArrayImageSource(Image(imgs))
71+
img_src = ArrayImageSource(imgs)
7372

7473
for ref, threshold in self.references.items():
7574
c, R = adaptive_support(img_src, threshold)

0 commit comments

Comments
 (0)