Skip to content

Commit

Permalink
Add cutout tests to various functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Nov 13, 2024
1 parent f8c3e09 commit 80c7c3e
Show file tree
Hide file tree
Showing 13 changed files with 2,854 additions and 640 deletions.
5 changes: 3 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*fits binary
*fit binary
*fts binary
*fit.gz binary
*fits binary
*fits.gz binary
*fts binary
*fts.gz binary
*npz binary
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.7.2"
rev: "v0.7.3"
hooks:
- id: ruff
args: ["--fix"]
Expand Down Expand Up @@ -31,11 +31,11 @@ repos:
- id: codespell
args: [ "--write-changes" ]
- repo: https://github.com/crate-ci/typos
rev: v1.23.1
rev: typos-dict-v0.11.35
hooks:
- id: typos
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.10.1"
rev: "v1.13.0"
hooks:
- id: mypy
additional_dependencies: ["types-setuptools"]
Expand Down
2 changes: 2 additions & 0 deletions changelog/215.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Added tests with JSOC cutouts and found issues with the data type of the files.
Now `sunkit_image.enhance.mgn` will convert the data to float 32 internally for its operations.
17 changes: 2 additions & 15 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,10 @@ filterwarnings =
# is being ignored
#
#
# https://github.com/pytest-dev/pytest-cov/issues/557
ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning
# // These come from the oldestdeps run //
# This is due to dependencies building with a numpy version different from
# the local installed numpy version, but should be fine
# See https://github.com/numpy/numpy/issues/15748#issuecomment-598584838
ignore:numpy.ufunc size changed:RuntimeWarning
ignore:numpy.ndarray size changed:RuntimeWarning
# sunpy warning, TODO update the tests to avoid raising this warning
ignore:Missing metadata for observer:sunpy.util.exceptions.SunpyMetadataWarning
ignore:Missing metadata for observation time:sunpy.util.exceptions.SunpyMetadataWarning
ignore:distutils Version classes are deprecated:DeprecationWarning
ignore:Starting with ImageIO v3 the behavior of this function will:DeprecationWarning
ignore:Please use `gaussian_filter` from the `scipy.ndimage` namespace:DeprecationWarning
ignore:Please use `laplace` from the `scipy.ndimage` namespace:DeprecationWarning
ignore:.*Deprecated NumPy 1.24.*:DeprecationWarning
ignore:'cgi' deprecated and slated for removal in Python 3.13:DeprecationWarning
# astropy/utils/iers/iers.py:1115: in auto_open good_enough = cls._today() + TimeDelta(offset, format="jd")
ignore:datetime.datetime.utc:DeprecationWarning
ignore:.*may indicate binary incompatibility.*:RuntimeWarning
ignore:leap-second file is expired:astropy.utils.iers.iers.IERSStaleWarning
ignore:leap-second auto-update failed:astropy.utils.exceptions.AstropyWarning
Loading

0 comments on commit 80c7c3e

Please sign in to comment.