Skip to content

Commit

Permalink
Ignore a photutils warning for now
Browse files Browse the repository at this point in the history
Suppress warning again

Fixes for photutils 1.13
  • Loading branch information
mwcraig committed Jul 1, 2024
1 parent fa0a076 commit d427bfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,6 @@ filterwarnings = [
'ignore:Deprecated in traitlets 4.1, use the instance:DeprecationWarning',
# Some WCS headers are issuing warnings
'ignore:RADECSYS=:',
# photutils changed the name of a function again
'ignore:The make_gaussian_sources_image function is deprecated',
]
4 changes: 2 additions & 2 deletions stellarphot/photometry/tests/fake_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, noise_dev=1.0, seed=None):
self._sources = Table.read(data_file)
self.mean_noise = self.sources["amplitude"].max() / 100
self.noise_dev = noise_dev
self._stars = make_gaussian_sources_image(self.image_shape, self.sources)
self._stars = make_gaussian_sources_image(tuple(self.image_shape), self.sources)
self._noise = make_noise_image(
self._stars.shape, mean=self.mean_noise, stddev=noise_dev, seed=seed
)
Expand Down Expand Up @@ -194,7 +194,7 @@ def shift_FakeCCDImage(ccd_data, x_shift, y_shift):

# Make image
srcs = make_gaussian_sources_image(
shifted_ccd_data.image_shape, shifted_ccd_data.sources
tuple(shifted_ccd_data.image_shape), shifted_ccd_data.sources
)
background = make_noise_image(
srcs.shape, mean=shifted_ccd_data.mean_noise, stddev=shifted_ccd_data.noise_dev
Expand Down

0 comments on commit d427bfd

Please sign in to comment.