Skip to content

Commit

Permalink
Add tests with a jsoc cutout file and update MGN to convert int to fl…
Browse files Browse the repository at this point in the history
…oat (#215)

* Add cutout tests to various functions

* Update 215.bugfix.rst
  • Loading branch information
nabobalis authored Nov 13, 2024
1 parent f8c3e09 commit 2ee3205
Show file tree
Hide file tree
Showing 16 changed files with 2,862 additions and 649 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
1 change: 1 addition & 0 deletions changelog/215.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Within `sunkit_image.enhance.mgn`, the input data is now cast to float32 to work around int/float being cast to each other causing an error.
1 change: 1 addition & 0 deletions changelog/215.trivial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added unit tests with a JSOC cutout file.
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 2ee3205

Please sign in to comment.