obiwan.runmanager.qdo_tasks
Given a ra,dec bounding box of region to inject simulated sources, and
the number density of simulated sources, these functions write the
‘qdo’ task list of each brick to process, repeated for how iterations will
be needed per brick
Classes
Bricks (survey_bricks_fn) |
|
TaskList ([ra1, ra2, dec1, dec2, nobj_total, …]) |
Creates QDO tasks lists for default,do_skipids, and/or do_more |
-
class
obiwan.runmanager.qdo_tasks.
TaskList
(ra1=123.3, ra2=124.3, dec1=24.0, dec2=25.0, nobj_total=1000000.0, nobj_per_run=500)[source]
Creates QDO tasks lists for default,do_skipids, and/or do_more
Parameters: |
- ra1,ra2,dec1,dec2 – floats, corners of ra dec box
- nobj_per_run – number of simulated sources to inject per obiwan run
|
-
bricks_in_region
(survey_bricks_fn=None)[source]
Returns bricks in ra,dec region
-
get_tasklist
(bricks=None, objtype='elg', do_more='no', minid=1, estim_nperbrick=2000.0, cosmos=False)[source]
- It is too slow to find the example number of randoms in each brick, so find all bricks
- with at least one source and put in the expected number of randoms + 2 StdErros worth
Parameters: |
- objtype – elg,lrg
- minid – None, unless do_more == yes then it is an integer for the randoms id to start from
- bricks – array like list of bricks to get qdo tasks for, if None all bricks found
|
-
task
(brick, rs, do_skipids, do_more)[source]
returns a single QDO task as a string
-
tasklist_skipids
(bricks=None, do_more='no', minid=None)[source]
tasklist for skipids runs
Parameters: |
- do_more – yes or no, yes if running more randoms b/c TS returns too few target
- minid – if do_more == yes, this must be an integer for the randoms id to start from
|
-
writetasks
(tasks, do_more='no', minid=1, do_skipids='no')[source]
Write task list to file