tests.end_to_end.test_datasets
Continuous integration ‘end-to-end’ tests of the Obiwan pipeline
Classes
AnalyzeTestcase(**kwargs) |
Automatically loads the relevant outputs for a given testcase_DR_* |
Testcase([dataset, bands, obj, rowstart, …]) |
Initialize and run a testcase |
TestcaseCosmos([subset]) |
|
Functions
test_case([dataset, z, grz, obj, add_noise, …]) |
| param dataset: | dr5, dr3, cosmos :param z, grz: to run the z and/or grz testcases :param all_blobs: to fit models to all blobs, not just the blobs containing sims :param add_noise: to add Poisson noise to simulated galaxy profiles :param onedge: to add randoms at edge of region, not well within the boundaries :param early_coadds: write coadds before model fitting and stop there :param dataset: no reason to be anything other than DR5 for these tests |
|
test_main() |
travis CI |
-
class
tests.end_to_end.test_datasets.AnalyzeTestcase(**kwargs)[source]
Automatically loads the relevant outputs for a given testcase_DR_*
| Parameters: | name – like ‘testcase_DR5_z_allblobs’ |
-
brick
-
bands
-
zoom
-
brickwcs
-
load_outputs()[source]
Each output from the testcase becomes an attribute
-
simcat, obitractor
-
jpg_coadds
-
fits_coadds
-
match_simcat_tractor()[source]
matches sim and real sources to tractor cat
| Returns: | indices into simcat,tractor
ireal: inices into tractor |
| Return type: | isim,itrac |
-
numeric_tests()[source]
T: TestcaseOutputs() object
-
plots()[source]
outdir: where write plots to
-
qualitative_tests()[source]
T: TestcaseOutputs() object
-
run()
run it
| Parameters: | no_cleanup – don’t run cleanup step |
-
simcat_xy()[source]
x,y of each simulated source in the fits coadd. Just like the
bx,by of tractor catalogues
-
class
tests.end_to_end.test_datasets.Testcase(dataset='dr5', bands='grz', obj='elg', rowstart=0, add_noise=False, all_blobs=False, onedge=False, early_coadds=False, checkpoint=False, no_cleanup=False, stage=None, skip_ccd_cuts=False)[source]
Initialize and run a testcase
| Parameters: |
- name – testcase name
- dataset – string, ‘DR3’, ‘DR5’,
- obj – elg,star
- add_noise – to add Poisson noise to simulated galaxy profiles
- all_blobs – to fit models to all blobs, not just the blobs containing sims
- onedge – to add randoms at edge of region, not well within the boundaries
|
-
run()[source]
run it
| Parameters: | no_cleanup – don’t run cleanup step |
-
tests.end_to_end.test_datasets.test_case(dataset='dr5', z=True, grz=False, obj='elg', add_noise=False, all_blobs=False, onedge=False, early_coadds=False, checkpoint=False, skip_ccd_cuts=False)[source]
| Parameters: |
- dataset – dr5, dr3, cosmos
- grz (z,) – to run the z and/or grz testcases
- all_blobs – to fit models to all blobs, not just the blobs containing sims
- add_noise – to add Poisson noise to simulated galaxy profiles
- onedge – to add randoms at edge of region, not well within the boundaries
- early_coadds – write coadds before model fitting and stop there
- dataset – no reason to be anything other than DR5 for these tests
|
-
tests.end_to_end.test_datasets.test_main()[source]
travis CI