Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise our own error when trying to rotate a map of integer data while…
… using a `missing` value of NaN (#7344) * Update mapbase.py try...except used to provide a useful error message to users. * Update sunpy/map/mapbase.py Co-authored-by: Nabil Freij <nabil.freij@gmail.com> * Update sunpy/map/mapbase.py Co-authored-by: Nabil Freij <nabil.freij@gmail.com> * Update sunpy/map/mapbase.py * Update sunpy/map/mapbase.py Co-authored-by: Nabil Freij <nabil.freij@gmail.com> * Update sunpy/map/mapbase.py * added unit test for mapbase file change test_mapbase.py changed unit test according to the try..except added to the padding * unit test added to make sure we hit the error in test_mapbase.py * Update test_mapbase.py added unit test with raising a warning rather than an error in padding * skipif removed in incompatible_missing_dtype_error() * Update sunpy/map/mapbase.py Co-authored-by: Nabil Freij <nabil.freij@gmail.com> * added a common unit test for both error and warning in numpy padding. * new_data variable introduced for except method aswell * if condition for numpy <1.20.0 removed * warning condition removed in unit testing and value error unit testing done * raising value error after except in mapbase.py * Update mapbase.py * Create 7344.feature.rst * Update mapbase.py * Update test_mapbase.py * Update test_mapbase.py * Update mapbase.py * pre-commits fixed * faliures resolved * Update changelog/7344.feature.rst Co-authored-by: Albert Y. Shih <ayshih@gmail.com> * Update sunpy/map/tests/test_mapbase.py Co-authored-by: Albert Y. Shih <ayshih@gmail.com> * Update sunpy/map/mapbase.py Co-authored-by: Albert Y. Shih <ayshih@gmail.com> * Update sunpy/map/mapbase.py Co-authored-by: Albert Y. Shih <ayshih@gmail.com> * suggestions commited * pre-commit resolved * logic fixed and test case updated for mapbase.py --------- Co-authored-by: Nabil Freij <nabil.freij@gmail.com> Co-authored-by: Albert Y. Shih <ayshih@gmail.com>
- Loading branch information