original_docstring: 
          Generate transfer functions for each DPC source pattern.
          
docstring: Generate transfer functions for each DPC source pattern.
docstring_tokens: Generate transfer functions for each DPC source pattern .
code: def WOTFGen(self):
          '''
          Generate transfer functions for each DPC source pattern.
          '''
          self.Hu = []
          self.Hp = []
          for rotIdx in range(self.source.shape[0]):
              FSP_cFP  = F(self.source[rotIdx]*self.pupil)*F(self.pupil).conj()
              I0       = (self.source[rotIdx]*self.pupil*self.pupil.conj()).sum()
              self.Hu.append(2.0*IF(FSP_cFP.real)/I0)
              self.Hp.append(2.0j*IF(1j*FSP_cFP.imag)/I0)
          self.Hu = np.asarray(self.Hu)
          self.Hp = np.asarray(self.Hp)
code_tokens: def WOTFGen ( self ) : self . Hu = [ ] self . Hp = [ ] for rotIdx in range ( self . source . shape [ 0 ] ) : FSP_cFP = F ( self . source [ rotIdx ] * self . pupil ) * F ( self . pupil ) . conj ( ) I0 = ( self . source [ rotIdx ] * self . pupil * self . pupil . conj ( ) ) . sum ( ) self . Hu . append ( 2.0 * IF ( FSP_cFP . real ) / I0 ) self . Hp . append ( 2.0j * IF ( 1j * FSP_cFP . imag ) / I0 ) self . Hu = np . asarray ( self . Hu ) self . Hp = np . asarray ( self . Hp )
short_docstring: Generate transfer functions for each DPC source pattern.
short_docstring_tokens: Generate transfer functions for each DPC source pattern .
comment: '''
          Generate transfer functions for each DPC source pattern.
          '''