Method signature updated

This commit is contained in:
Lukas Klass 2020-05-14 15:01:36 +02:00
parent ea12e86324
commit 0d8b3949a0
2 changed files with 9 additions and 3 deletions

View File

@ -32,16 +32,19 @@ class IPSF(ABC):
pass pass
@abstractmethod @abstractmethod
def mapToPixelMask(self, mask: PixelMask, jitter_sigma: u.Quantity = None) -> PixelMask: def mapToPixelMask(self, mask: PixelMask, jitter_sigma: u.Quantity = None, obstruction: float = 0.0) -> PixelMask:
""" """
Map the integrated PSF values to a sensor grid. Map the integrated PSF values to a sensor grid.
Parameters Parameters
---------- ----------
obstruction
mask : PixelMask mask : PixelMask
The pixel mask to map the values to. The values will only be mapped onto entries with the value 1. The pixel mask to map the values to. The values will only be mapped onto entries with the value 1.
jitter_sigma : Quantity jitter_sigma : Quantity
Sigma of the telescope's jitter in arcsec Sigma of the telescope's jitter in arcsec
obstruction : float
The central obstruction as ratio A_ob / A_ap
Returns Returns
------- -------

View File

@ -118,7 +118,7 @@ class Zemax(IPSF):
self.__f_number * self.__d_aperture) * self.__d_aperture / self.__wl self.__f_number * self.__d_aperture) * self.__d_aperture / self.__wl
return reduced_observation_angle * u.dimensionless_unscaled return reduced_observation_angle * u.dimensionless_unscaled
def calcPSF(self, jitter_sigma: u.Quantity = None): def calcPSF(self, jitter_sigma: u.Quantity = None, obstruction: float = None):
""" """
Calculate the PSF from the Zemax-file. This includes oversampling the PSF and convolving with the Calculate the PSF from the Zemax-file. This includes oversampling the PSF and convolving with the
jitter-gaussian. jitter-gaussian.
@ -127,6 +127,8 @@ class Zemax(IPSF):
---------- ----------
jitter_sigma : Quantity jitter_sigma : Quantity
Sigma of the telescope's jitter in arcsec Sigma of the telescope's jitter in arcsec
obstruction : float
The central obstruction as ratio A_ob / A_ap
Returns Returns
------- -------
@ -186,12 +188,13 @@ class Zemax(IPSF):
self.__psf_osf = psf_osf self.__psf_osf = psf_osf
return center_point, psf, psf_osf return center_point, psf, psf_osf
def mapToPixelMask(self, mask: PixelMask, jitter_sigma: u.Quantity = None) -> PixelMask: def mapToPixelMask(self, mask: PixelMask, jitter_sigma: u.Quantity = None, obstruction: float = 0.0) -> PixelMask:
""" """
Map the integrated PSF values to a sensor grid. Map the integrated PSF values to a sensor grid.
Parameters Parameters
---------- ----------
obstruction
mask : PixelMask mask : PixelMask
The pixel mask to map the values to. The values will only be mapped onto entries with the value 1. The pixel mask to map the values to. The values will only be mapped onto entries with the value 1.
jitter_sigma : Quantity jitter_sigma : Quantity