Skip to content

V0.14.x fix matplotlib test warnings and circular import - #3632

Merged
sciunto merged 7 commits into
scikit-image:v0.14.xfrom
hmaarrfk:v0.14.x
Jan 1, 2019
Merged

sciunto merged 7 commits into
scikit-image:v0.14.xfrom
hmaarrfk:v0.14.x

Conversation

@hmaarrfk

Copy link
Copy Markdown
Member

Fixes: #3631
Fixes: #3630

Checklist

[It's fine to submit PRs which are a work in progress! But before they are merged, all PRs should provide:]

[For detailed information on these and other aspects see scikit-image contribution guidelines]

References

[If this is a bug-fix or enhancement, it closes issue # ]
[If this is a new feature, it implements the following paper: ]

For reviewers

(Don't remove the checklist below.)

  • Check that the PR title is short, concise, and will make sense 1 year
    later.
  • Check that new functions are imported in corresponding __init__.py.
  • Check that new features, API changes, and deprecations are mentioned in
    doc/release/release_dev.rst.
  • Consider backporting the PR with @meeseeksdev backport to v0.14.x

@hmaarrfk hmaarrfk changed the title V0.14.x V0.14.x fix matplotlib test warnings and circular import Dec 30, 2018

@jni jni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hmaarrfk I've made some comments that may or may not help. =)

Comment thread skimage/io/tests/test_mpl_imshow.py Outdated
im_lo = imf / 1000
im_hi = imf + 10

the_expected_warnings = [r"tight_layout : falling back to Agg|\A\Z",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rename this to something more meaningful? e.g. expected_imshow_warnings or expected_warnings_on_imshow?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading the later tests, I might suggests three constants:

  • base expected warnings on imshow
  • CObject warning on imshow
  • low range warning on imshow

Then you can combine them with + in each test?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is alot of work, for a branch that isn't even master.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough, hence why I didn't tick "request changes". =) The first suggestion is not a lot of work though! Actually let me do it with suggestions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind, just saw that you took care of it! Thank you!! =)

Comment thread skimage/io/tests/test_mpl_imshow.py Outdated

the_expected_warnings = [r"tight_layout : falling back to Agg|\A\Z",
r"CObject type is marked|\A\Z",
# Maptlotlib 2.2.3 seems to use np.asscalar which issues a warning

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... with NumPy 1.16, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea.

@jni

jni commented Dec 30, 2018

Copy link
Copy Markdown
Member

Travis requires some backports I think... As well as some fixes that aren't yet merged...

@jni jni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 !

@sciunto

sciunto commented Jan 1, 2019

Copy link
Copy Markdown
Member

This looks good to me, but travis is all red. is it possible to rebase please?

@pep8speaks

pep8speaks commented Jan 1, 2019 •

Copy link
Copy Markdown

Hello @hmaarrfk! Thanks for updating the PR.

Line 88:28: W504 line break after binary operator
Line 98:28: W504 line break after binary operator
Line 108:28: W504 line break after binary operator

Comment last updated on January 01, 2019 at 16:47 Hours UTC

@codecov-io

codecov-io commented Jan 1, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #3632 into v0.14.x will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           v0.14.x    #3632      +/-   ##
===========================================
+ Coverage    86.68%   86.69%   +<.01%     
===========================================
  Files          337      337              
  Lines        27568    27568              
===========================================
+ Hits         23898    23900       +2     
+ Misses        3670     3668       -2
Impacted Files Coverage Δ
skimage/color/colorconv.py 99.09% <100%> (ø) ⬆️
skimage/io/tests/test_mpl_imshow.py 98.52% <100%> (ø) ⬆️
skimage/draw/_random_shapes.py 97.89% <0%> (+2.1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 17ce76f...47408a9. Read the comment docs.

@hmaarrfk

hmaarrfk commented Jan 1, 2019

Copy link
Copy Markdown
Member Author

So the dask bug has been cross referenced and
I think this should be needed to at least get appveyeor a little further in the builds
#3222

@sciunto

sciunto commented Jan 1, 2019

Copy link
Copy Markdown
Member

Thanks! :)

@sciunto
sciunto merged commit bd24605 into scikit-image:v0.14.x Jan 1, 2019
@soupault soupault mentioned this pull request Jan 2, 2019
4 of 5 tasks
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.

5 participants