From 654a3da3fab37ed7c5d115c7bd23fc29378d6130 Mon Sep 17 00:00:00 2001 From: Simon Birrer Date: Tue, 11 Jun 2024 16:47:37 -0400 Subject: [PATCH] minor change in documentation and explicity type of exception --- lenstronomy/Data/psf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lenstronomy/Data/psf.py b/lenstronomy/Data/psf.py index dccec3f1c..b73519533 100644 --- a/lenstronomy/Data/psf.py +++ b/lenstronomy/Data/psf.py @@ -205,7 +205,7 @@ def set_pixel_size(self, deltaPix): if self.psf_type == "GAUSSIAN": try: del self._kernel_point_source - except: + except NameError: pass @property @@ -226,7 +226,7 @@ def psf_error_map(self): def fwhm(self): """ - :return: full width at half maximum of kernel (in units of pixel) + :return: full width at half maximum of kernel (in units of angle) """ if self.psf_type == "GAUSSIAN": return self._fwhm