spacetelescope / webbpsf

James Webb Space Telescope PSF simulation tool
https://webbpsf.readthedocs.io
BSD 3-Clause "New" or "Revised" License
119 stars 63 forks source link

mark display_psf_grid as deprecated #901

Open mperrin opened 3 months ago

mperrin commented 3 months ago

This addresses #887 by marking display_psf_grid as deprecated, using an astropy decorator for marking deprecation.

I'm not actually sure this is the best way to do this, and welcome suggestions if there's a better way. I see there's also a PEP 702 to add a similar @deprecated to the standard library but it's not yet available even in py 3.12, so that doesn't work. In any case we can informally deprecate (and I'm separately revising the docs and example code in #899 already), so this PR is just attempting to mark the deprecation in code, in some suitable manner.

pep8speaks commented 3 months ago

Hello @mperrin, Thank you for updating !

There are no PEP8 issues in this Pull Request.

Comment last updated at 2024-08-05 17:57:23 UTC