-
-
Notifications
You must be signed in to change notification settings - Fork 573
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
added tests for map sequence animator #5041
Conversation
Looking at our codecov (you will need to login via github unfortunately): https://codecov.io/gh/sunpy/sunpy/src/7d2b42b73a4130846b32ba3c9ecb2b22390b8e89/sunpy/map/mapsequence.py If I am reading it right, in fact MapSequenceAnimator has at least some test coverage while the plot method for MapSequence does not. So I think we should also add a figure test for MapSequence.plot while we are here. |
map_animator.updatefig(1, map_animator.im, map_animator.sliders[0]._slider) | ||
return map_animator.fig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this is possible to test without a figure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose, I'll make this change soon
I shall test that at |
Yeah. |
Hello @jeffreypaul15! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2021-03-22 10:20:58 UTC |
@nabobalis I've updated the tests accordingly and added a test for plot. Let me know if this is fine |
You need to rebase the PR and I think a trivial changelog entry makes sense. |
c969042
to
114c1b6
Compare
82d2995
to
53e569d
Compare
Having a bit of trouble with this, I'm not too sure as to what's the need for rebase. Apologies for the mistakes here, I kinda messed up the rebasing |
You can merge in master if it's easier. There is conflict with master and this needs to be addressed. |
* Create a CI script to run ASV daily * CI: write a script * CI: update `cron` * Add asv config file * Add benchmarks dir * CI: update 'cron' * Ci: update 'cron' * CI: change 'cron' to 7:00 UTC * CI: add `--skip-existing-successful`option * CI: typo fix * Add benchmarks file * CI: tmp add on push activation * Modify benchmark * CI: final version * Tox codestyle fix * Update: change range to `v2.1.dev..` Co-authored-by: Stuart Mumford <stuart@cadair.com> * CI: typo fix and tmp on push start * CI: delete debug step Co-authored-by: Stuart Mumford <stuart@cadair.com>
Co-authored-by: Albert Y. Shih <ayshih@gmail.com> Co-authored-by: Nabil Freij <nabil.freij@gmail.com>
44aa2c4
to
22c61bd
Compare
So what exactly would I have to do? |
22c61bd
to
3f7ab20
Compare
Actually, I shall reopen this PR. Its a lot easier |
Description
Fixes #2296
Added tests for
MapSequenceAnimator
.Figure hashes have yet to be added.