seisflows.tests.test_preprocess

Test the ability of the Solver module to interact with various versions of SPECFEM

Module Contents

Functions

test_default_read()

Test that we can read observed/synthetic traces with the preprocess mod.

test_default_write(tmpdir)

Test that we can write synthetic waveforms to formats that SPECFEM recognizes

test_default_initialize_adjoint_traces(tmpdir)

Make sure we can write empty adjoint sources expected by SPECFEM

test_default_quantify_misfit(tmpdir)

Quantify misfit with some example data

test_pyaflowa_setup(tmpdir)

Test setup procedure for SeisFlows which internalizes some workflow

test_pyaflowa_setup_config(tmpdir)

Test Config setup that is used to control quantify_misfit function

test_pyaflowa_check_fixed_windows()

Test that misfit window bool returner always returns how we want it to.

test_pyaflowa_line_search(tmpdir)

Test that the Pyaflowa preprocess class can quantify misfit over the course

Attributes

TEST_DATA

TEST_SOLVER

seisflows.tests.test_preprocess.TEST_DATA
seisflows.tests.test_preprocess.TEST_SOLVER
seisflows.tests.test_preprocess.test_default_read()

Test that we can read observed/synthetic traces with the preprocess mod.

seisflows.tests.test_preprocess.test_default_write(tmpdir)

Test that we can write synthetic waveforms to formats that SPECFEM recognizes

seisflows.tests.test_preprocess.test_default_initialize_adjoint_traces(tmpdir)

Make sure we can write empty adjoint sources expected by SPECFEM

seisflows.tests.test_preprocess.test_default_quantify_misfit(tmpdir)

Quantify misfit with some example data

seisflows.tests.test_preprocess.test_pyaflowa_setup(tmpdir)

Test setup procedure for SeisFlows which internalizes some workflow information that is crucial for later tasks

seisflows.tests.test_preprocess.test_pyaflowa_setup_config(tmpdir)

Test Config setup that is used to control quantify_misfit function

seisflows.tests.test_preprocess.test_pyaflowa_check_fixed_windows()

Test that misfit window bool returner always returns how we want it to.

Test that the Pyaflowa preprocess class can quantify misfit over the course of a few evaluations (a line search) and run its finalization task Essentially an integration test testing the entire preprocessing module works as a whole