Skip to content

Commit

Permalink
replace deprecated GriddedPSFModel import
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 committed Jul 26, 2023
1 parent b219a7d commit af28236
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions webbpsf/gridded_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,12 @@ def __init__(self, instrument, filter_name, detectors="all", num_psfs=16, psf_lo

# Before doing anything else, check that we have GriddedPSFModel
try:
from photutils import GriddedPSFModel
from photutils.psf import GriddedPSFModel
except ImportError:
raise ImportError("This method requires photutils >= 0.6")
try:
from photutils import GriddedPSFModel
except ImportError:
raise ImportError("This method requires photutils >= 0.6")

# Pull WebbPSF instance
self.webb = instrument
Expand Down

0 comments on commit af28236

Please sign in to comment.