pyatoa.tests.test_inspector
Test the Inspector class and its ability to generate dataframes for bulk analyses of an inversion
Module Contents
Functions
|
An Inspector filled in by a SeisFlows workflow used to test some of the |
|
|
|
Make sure that the Inspector can append a single event and put the correct |
|
Make sure Inspector can find HDF5 files generally and read them in. |
|
Make sure that you can extend the current inspector with the widnows of |
|
Test the read and write functions with both an empty and a filled inspector |
|
Test the isolate function to grab specific data from a filled inspector. |
|
Test the number of windows function |
|
Test the misfit calculation function |
|
Test the per-level stats calculations |
|
Test the minmax printing function |
|
Test inter-event comparisons |
Test that compare with no data returns NoneType |
|
|
TODO Need fixed window inversion results to make this work |
|
TODO Test that when no step information is provided (only iteration), |
|
Test the model state tracker |
|
Test convenience function that finds accepted models only |
- pyatoa.tests.test_inspector.seisflows_inspector(test_data)[source]
An Inspector filled in by a SeisFlows workflow used to test some of the more complex functions
- pyatoa.tests.test_inspector.test_append(asdf_dataset_fid)[source]
Make sure that the Inspector can append a single event and put the correct data in the correct place
- pyatoa.tests.test_inspector.test_discover(test_data)[source]
Make sure Inspector can find HDF5 files generally and read them in.
- pyatoa.tests.test_inspector.test_extend(inspector)[source]
Make sure that you can extend the current inspector with the widnows of another. In this example we just use the same inspector twice Also tests the copy function to make sure that the extension doesn’t affect both inspectors
- pyatoa.tests.test_inspector.test_read_write_csv(tmpdir, inspector)[source]
Test the read and write functions with both an empty and a filled inspector
- pyatoa.tests.test_inspector.test_isolate(seisflows_inspector)[source]
Test the isolate function to grab specific data from a filled inspector. Test by checking number of windows at each isolation call
- pyatoa.tests.test_inspector.test_nwin(seisflows_inspector)[source]
Test the number of windows function
- pyatoa.tests.test_inspector.test_misfit(seisflows_inspector)[source]
Test the misfit calculation function
- pyatoa.tests.test_inspector.test_stats(seisflows_inspector)[source]
Test the per-level stats calculations
- pyatoa.tests.test_inspector.test_minmax(seisflows_inspector)[source]
Test the minmax printing function
- pyatoa.tests.test_inspector.test_compare_no_data()[source]
Test that compare with no data returns NoneType
- pyatoa.tests.test_inspector.test_compare_windows(seisflows_inspector)[source]
TODO Need fixed window inversion results to make this work
- pyatoa.tests.test_inspector.test_no_step_information(seisflows_inspector)[source]
TODO Test that when no step information is provided (only iteration), TODO inspector can still handle data