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

Fix assert_quantity_allclose having pytest dep #2943

Merged
merged 2 commits into from Feb 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/2943.trivial.rst
@@ -0,0 +1 @@
Remove the pytest dependancy on the ``GenericMap`` asdf tag.
3 changes: 1 addition & 2 deletions sunpy/io/special/asdf/tags/map/generic_map.py
Expand Up @@ -2,7 +2,6 @@
import numpy as np

import astropy.units as u
from astropy.tests.helper import assert_quantity_allclose
from asdf.yamlutil import custom_tree_to_tagged_tree

import sunpy.map
Expand Down Expand Up @@ -57,7 +56,7 @@ def assert_equal(cls, old, new):
assert ok in new.meta
assert new.meta[ok] == ov

assert_quantity_allclose(old.shifted_value, new.shifted_value)
assert u.allclose(old.shifted_value, new.shifted_value)
if old.mask is not None and new.mask is not None:
np.testing.assert_allclose(old.mask, new.mask)
assert old.unit == new.unit