Skip to content

Commit 309338b

Browse files
committed
Add debug log to AnisocadoConstPSF
1 parent 06e0769 commit 309338b

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

scopesim/effects/psfs/semianalytical.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,18 @@
1111

1212
from .. import ter_curves_utils as tu
1313
from ...optics.fov import FieldOfView
14-
from ...utils import (figure_factory, figure_grid_factory, from_currsys,
15-
quantify, check_keys)
14+
from ...utils import (
15+
figure_factory,
16+
figure_grid_factory,
17+
from_currsys,
18+
quantify,
19+
check_keys,
20+
get_logger,
21+
)
1622
from . import PSF
1723

24+
logger = get_logger(__name__)
25+
1826

1927
class SemiAnalyticalPSF(PSF):
2028
"""Base class for semianalytical PSFs."""
@@ -115,9 +123,11 @@ def get_kernel(self, fov):
115123

116124
n = self.meta["psf_side_length"]
117125
wave = self.wavelength
126+
logger.debug(" start AnisoCADO")
118127
self._psf_object = aniso.AnalyticalScaoPsf(pixelSize=pixel_scale,
119128
N=n, wavelength=wave,
120129
nmRms=self.nmRms)
130+
logger.debug(" done AnisoCADO")
121131
if np.any(self.meta["offset"]):
122132
self._psf_object.shift_off_axis(self.meta["offset"][0],
123133
self.meta["offset"][1])

0 commit comments

Comments
 (0)