original_docstring:  Search for transients in all target scans and segments
      
docstring: Search for transients in all target scans and segments
docstring_tokens: Search for transients in all target scans and segments
code: def search():
      """ Search for transients in all target scans and segments
      """
      import realtime.RT as rt
      import realtime.parsesdm as ps
  
      # queue jobs
      for scan in scans:
          scanind = scans.index(scan)
          print 'Getting metadata for %s, scan %d' % (filename, scan)
          state = ps.get_metadata(workdir + filename, scan, chans=chans, spw=spw)
          rt.set_pipeline(state, nthread=nthread, nsegments=nsegments, gainfile=workdir + gainfile, bpfile=workdir + bpfile, dmarr=dmarr, dtarr=dtarr, timesub=timesub, candsfile=workdir + candsfile, noisefile=workdir + noisefile, sigma_image1=sigma_image1, flagmode=flagmode, flagantsol=flagantsol, searchtype=searchtype, uvres=uvres, npix=npix)
          print 'Sending %d segments to queue' % (state['nsegments'])
          for segment in range(state['nsegments']):
              q.enqueue_call(func=rt.pipeline, args=(state, segment), timeout=24*3600, result_ttl=24*3600)
code_tokens: def search ( ) : import realtime . RT as rt import realtime . parsesdm as ps for scan in scans : scanind = scans . index ( scan ) print 'Getting metadata for %s, scan %d' % ( filename , scan ) state = ps . get_metadata ( workdir + filename , scan , chans = chans , spw = spw ) rt . set_pipeline ( state , nthread = nthread , nsegments = nsegments , gainfile = workdir + gainfile , bpfile = workdir + bpfile , dmarr = dmarr , dtarr = dtarr , timesub = timesub , candsfile = workdir + candsfile , noisefile = workdir + noisefile , sigma_image1 = sigma_image1 , flagmode = flagmode , flagantsol = flagantsol , searchtype = searchtype , uvres = uvres , npix = npix ) print 'Sending %d segments to queue' % ( state [ 'nsegments' ] ) for segment in range ( state [ 'nsegments' ] ) : q . enqueue_call ( func = rt . pipeline , args = ( state , segment ) , timeout = 24 * 3600 , result_ttl = 24 * 3600 )
short_docstring: Search for transients in all target scans and segments
short_docstring_tokens: Search for transients in all target scans and segments
comment: """ Search for transients in all target scans and segments
      """$SEP$# queue jobs