pyatoa.tests.test_inspector

Test the Inspector class and its ability to generate dataframes for bulk analyses of an inversion

Module Contents

Functions

test_data()

asdf_dataset_fid()

seisflows_inspector(test_data)

An Inspector filled in by a SeisFlows workflow used to test some of the

inspector(asdf_dataset_fid)

test_append(asdf_dataset_fid)

Make sure that the Inspector can append a single event and put the correct

test_discover(test_data)

Make sure Inspector can find HDF5 files generally and read them in.

test_extend(inspector)

Make sure that you can extend the current inspector with the widnows of

test_read_write_csv(tmpdir, inspector)

Test the read and write functions with both an empty and a filled inspector

test_isolate(seisflows_inspector)

Test the isolate function to grab specific data from a filled inspector.

test_nwin(seisflows_inspector)

Test the number of windows function

test_misfit(seisflows_inspector)

Test the misfit calculation function

test_stats(seisflows_inspector)

Test the per-level stats calculations

test_minmax(seisflows_inspector)

Test the minmax printing function

test_compare(seisflows_inspector)

Test inter-event comparisons

test_compare_no_data()

Test that compare with no data returns NoneType

test_compare_windows(seisflows_inspector)

TODO Need fixed window inversion results to make this work

test_no_step_information(seisflows_inspector)

TODO Test that when no step information is provided (only iteration),

test_get_models(seisflows_inspector)

Test the model state tracker

test_get_unique_models(seisflows_inspector)

Test convenience function that finds accepted models only

pyatoa.tests.test_inspector.test_data()[source]
pyatoa.tests.test_inspector.asdf_dataset_fid()[source]
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.inspector(asdf_dataset_fid)[source]
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(seisflows_inspector)[source]

Test inter-event comparisons

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

pyatoa.tests.test_inspector.test_get_models(seisflows_inspector)[source]

Test the model state tracker

pyatoa.tests.test_inspector.test_get_unique_models(seisflows_inspector)[source]

Test convenience function that finds accepted models only