-
-
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 test for map save #2365
added test for map save #2365
Conversation
Hello @himanshukgp! Thanks for updating the PR. Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated on December 13, 2017 at 13:39 Hours UTC |
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.
Thanks @himanshukgp!!
sunpy/map/tests/test_mapbase.py
Outdated
afilename = tempfile.NamedTemporaryFile(suffix='fits').name | ||
eitmap.save(afilename, filetype='fits', clobber=True) | ||
backin = sunpy.map.Map(afilename) | ||
assert isinstance(backin, sunpy.map.sources.EITMap) |
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.
adding some test to make sure the data
and meta
attributes survied the trip would be very valuable.
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.
Like this?
Thanks @himanshukgp |
I just added two extra asserts for the data and header. |
@himanshukgp Thanks for this! Sorry for getting a bits handsy on it, I was just thinking of adding this for our next release (0.8.3)! |
Closes #2303