Skip to content

Commit

Permalink
adding more explanation to the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Clara Brasseur committed Aug 9, 2021
1 parent c5edaa6 commit b240559
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
coverage:
range: 50..90
round: down
precision: 2
status:
project:
# full project
default:
target: 90%
threshold: 5%
base: auto
patch:
# just the lines changed
default:
target: 50%
threshold: 10%
base: auto
only_pulls: false
8 changes: 8 additions & 0 deletions astrocut/tests/test_cutout_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,14 @@ def test_center_on_path(tmpdir):


def test_default_combine():
"""
The build_default_combine_function function uses the input hdus
to determine which pixels will be used by the combiner function
when combining images. The returned combiner function applies
that mask before taking the mean of all non-masked pixels to get the
output image.
"""

hdu_1 = fits.ImageHDU(np.array([[1, 1], [0, 0]]))
hdu_2 = fits.ImageHDU(np.array([[0, 0], [1, 1]]))

Expand Down

0 comments on commit b240559

Please sign in to comment.