code: def psffunc(self, *args, **kwargs):
          
          if self.polychromatic:
              func = psfcalc.calculate_polychrome_linescan_psf
          else:
              func = psfcalc.calculate_linescan_psf
          return func(*args, **kwargs)
docs: Calculates a linescan psf