Skip to content

Scripting

Anderl edited this page Feb 12, 2019 · 1 revision

Structure of a PyRAT script:

#!/usr/bin/env python      
from pyrat import *
pyrat_init()
PyRat command 1
PyRat command 2
some normal python code
PyRat command 3
...

Tricks:

  • pyrat_init(debug=True) Additional debugging output, no multithreading. Especially recommended while you're developing a routine - this allows to use pdb without hassle!
  • pyrat_init(nthreads=2) Different default for the number of threads (default: #cpu)
  • pyrat._nthreads=2 changes the number of cpu's used
  • Worker.blockprocess=False disables the block processing entirely
  • Worker.blocksize=512 changes the size of the azimuth blocks during blockprocessing (default=128)
Clone this wiki locally