Skip to content

Commit

Permalink
test: more missing imports and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr committed Aug 21, 2024
1 parent 0e379d2 commit 9696fbb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/test_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# and/or other materials provided with the distribution.
#

import os
import numpy as np

import galsim
Expand Down
1 change: 1 addition & 0 deletions tests/test_draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# and/or other materials provided with the distribution.
#

import os
import numpy as np

import galsim
Expand Down
4 changes: 2 additions & 2 deletions tests/test_real.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def test_real_galaxy_catalog():

# Test some values that are lazy evaluated:
assert rgc.ident[0] == '100533'
assert rgc.gal_file_name[0] == './real_comparison_images/test_images.fits'
assert rgc.psf_file_name[0] == './real_comparison_images/test_images.fits'
assert rgc.gal_file_name[0].split("/")[-2:] == ['real_comparison_images', 'test_images.fits']
assert rgc.psf_file_name[0].split("/")[-2:] == ['real_comparison_images', 'test_images.fits']
assert rgc.noise_file_name is None
np.testing.assert_array_equal(rgc.gal_hdu, [0,1])
np.testing.assert_array_equal(rgc.psf_hdu, [2,3])
Expand Down

0 comments on commit 9696fbb

Please sign in to comment.