Similar to legacypipe/py/test/runbrick_test.py, this runs and analyzes the output of legacypipe running on 200x200 pixels regions that obiwan has injected simulated sources intoself.
See ‘test_200x200_pixel_regions.py’ for how to use this file
Classes
Tolerances |
Tolerances on Tractor measured mags and test_flux_shape_measurements |
analysis_setup (**kw) |
Loads the outputs from run_kenobi_main().run() and measurement tolerances |
run_kenobi_main ([survey, dataset, bands, …]) |
Runs main() in kenobi.py, which runs legacypipe |
run_kenobi_main_cosmos ([survey]) |
Supports subsets 60-69 |
test_detected_simulated_and_real_sources (**kw) |
|
test_draw_circles_around_sources_check_by_eye (**kw) |
|
test_flux_shape_measurements (**kw) |
Functions
at_most_N_is_false (bool_array[, N]) |
Returns True if bool_array has at most N elements that are False |
nanomag2mag (nmgy) |
tests.run_200x200_pixel_regions.
Tolerances
[source]¶Tolerances on Tractor measured mags and test_flux_shape_measurements
Parameters: |
|
---|
tests.run_200x200_pixel_regions.
analysis_setup
(**kw)[source]¶Loads the outputs from run_kenobi_main().run() and measurement tolerances
Parameters: | kwargs – the same inputs to run_kenobi_main |
---|
same as run_kenobi_main
tol
¶tolerance dict for flux, rhalf, etc.
load_outputs
()[source]¶Loads every output we could possibly need to evaluate a test
simcat, obitractor
jpg_coadds
¶fits_coadds
¶run
()¶Add the sources and run legacypipe
Parameters: | no_cleanup – don’t run cleanup step |
---|
tests.run_200x200_pixel_regions.
at_most_N_is_false
(bool_array, N=1)[source]¶Returns True if bool_array has at most N elements that are False
Example, all(bool_array) is equivalent to at_most_N_is_false(bool_array,N=0)
Parameters: | N – the number of false elements allowed |
---|
tests.run_200x200_pixel_regions.
run_kenobi_main
(survey=None, dataset=None, bands='grz', obj='elg', rowstart=0, add_noise=False, all_blobs=False, on_edge=False, early_coadds=False, checkpoint=False, skip_ccd_cuts=False, no_cleanup=False, stage=None)[source]¶Runs main() in kenobi.py, which runs legacypipe
Works for either DECaLS or MzLS/BASS. Use setup_testcase() on the result
Parameters: |
|
---|
tests.run_200x200_pixel_regions.
run_kenobi_main_cosmos
(survey=None)[source]¶Supports subsets 60-69
tests.run_200x200_pixel_regions.
test_detected_simulated_and_real_sources
(**kw)[source]¶get_index_of_real_galaxy_at_center
()[source]¶There is a real galaxy at center, which tractor cat index is it?
load_outputs
()¶Loads every output we could possibly need to evaluate a test
simcat, obitractor
jpg_coadds
¶fits_coadds
¶run
()¶Add the sources and run legacypipe
Parameters: | no_cleanup – don’t run cleanup step |
---|
tests.run_200x200_pixel_regions.
test_draw_circles_around_sources_check_by_eye
(**kw)[source]¶load_outputs
()¶Loads every output we could possibly need to evaluate a test
simcat, obitractor
jpg_coadds
¶fits_coadds
¶run
()¶Add the sources and run legacypipe
Parameters: | no_cleanup – don’t run cleanup step |
---|