Onyx logo

Previous topic

onyx.grid.runjob – Script for running the individual executable tasks of a gridmap job.

Next topic

HTK Files

This Page

onyx.grid.pi_job – Exercise grid-interface code by calculating digits of pi

onyx.grid.pi_job.logreftest()
onyx.grid.pi_job.main(args, **kwargs)
>>> main(['1', '5', fake_grid_option]) 
pi_job args: 1 5 --fake-grid
pi_job map_func_t: pi_guy 1 5
Your job-array ....1-5:1 ("pi_job_jo") has been submitted (qsubfake)
Job ....1 exited with exit code 0.
Job ....2 exited with exit code 0.
Job ....3 exited with exit code 0.
Job ....4 exited with exit code 0.
Job ....5 exited with exit code 0.
<BLANKLINE>
<BLANKLINE>
pi_job map_func_t: done
pi_job digit_index digit
  1 3
  2 1
  3 4
  4 1
  5 5
pi_job done
onyx.grid.pi_job.pi_guy(count)
>>> pi_guy(10)
(3, 1, 4, 1, 5, 9, 2, 6, 5, 3)