11# -*- coding: utf-8 -*-
2- """Effects for the METIS ifu_cube mode"""
2+ """Effects for the METIS ifu_cube mode. """
33
44from typing import ClassVar
55
1515
1616class LineSpreadFunction (Effect ):
1717 """
18- Compute and apply line spread function to IFU cube
18+ Compute and apply line spread function to IFU cube.
1919
2020 The effect can be instantiated either with the single parameter
2121
@@ -39,7 +39,11 @@ class LineSpreadFunction(Effect):
3939 Spectral bin width of the 3D detector of the lms_cube mode.
4040
4141 These values are set in `METIS_LMS_SMPL.yaml`.
42+
43+ .. versionadded:: PLACEHOLDER_NEXT_RELEASE_VERSION
44+
4245 """
46+
4347 z_order : ClassVar [tuple [int , ...]] = (660 ,)
4448 report_plot_include : ClassVar [bool ] = True
4549 report_table_include : ClassVar [bool ] = False
@@ -56,7 +60,7 @@ def __init__(self, **kwargs):
5660 self .kernel = self .get_kernel ()
5761
5862 def apply_to (self , obj , ** kwargs ):
59- """Apply the LSF"""
63+ """Apply the LSF. """
6064 if not isinstance (obj , FieldOfView ):
6165 return obj
6266
@@ -69,8 +73,7 @@ def apply_to(self, obj, **kwargs):
6973 return obj
7074
7175 def get_lsf_width (self ):
72- """Determine width of the LSF kernel at central wavelength"""
73-
76+ """Determine width of the LSF kernel at central wavelength."""
7477 slope = self .meta ['fit_slope' ]
7578 intercept = self .meta ['fit_intercept' ]
7679 lamc = self .meta ["wavelen" ]
@@ -85,10 +88,8 @@ def get_lsf_width(self):
8588
8689 return dlam_per_slice / spec_binwidth
8790
88-
8991 def get_kernel (self ):
90- """Build LSF kernel: box kernel smoothed with narrow Gauss"""
91-
92+ """Build LSF kernel: box kernel smoothed with narrow Gauss."""
9293 box = Box1DKernel (width = self .lsfwidth )
9394 gauss = Gaussian1DKernel (1 )
9495 if box .shape > gauss .shape :
0 commit comments