Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update function renamed in skimage 0.16. #523

Merged
merged 1 commit into from
Dec 27, 2020

Conversation

sebastic
Copy link

test_psnr fails with skimage 0.18 because skimage.measure.compare_psnr was renamed to skimage.metrics.peak_signal_noise_ratio in 0.16.

======================================================================
ERROR: test_psnr (tests.test_jp2k.TestJp2k_write)
SCENARIO:  Four peak signal-to-noise ratio values are supplied, the
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/tests/test_jp2k.py", line 1309, in test_psnr
    psnr = [
  File "/<<PKGBUILDDIR>>/tests/test_jp2k.py", line 1310, in <listcomp>
    skimage.measure.compare_psnr(skimage.data.camera(), d[j])
AttributeError: module 'skimage.measure' has no attribute 'compare_psnr'

----------------------------------------------------------------------
Ran 468 tests in 44.506s

@quintusdias quintusdias merged commit 307b060 into quintusdias:master Dec 27, 2020
@sebastic sebastic deleted the skimage branch December 27, 2020 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants