Skip to content

Commit

Permalink
test that islands are actually being characterised
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHancock committed Aug 28, 2017
1 parent d03aa1c commit 24f9f46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_source_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ def test_find_sources():
# now with some options
found2 = sfinder.find_sources_in_image(filename, doislandflux=True, outfile=open('dlme', 'w'), nonegative=False)
assert len(found2) == 116
isle1 = found2[1]
assert isle1.int_flux > 0
assert isle1.max_angular_size > 0
assert isle1.pixels == 21
# we should have written some output file
assert os.path.exists('dlme')
os.remove('dlme')
Expand Down

0 comments on commit 24f9f46

Please sign in to comment.