seisflows.tests.test_tools

Test any of the utility functions defined in the Tools directory

Attributes

TEST_DIR

TEST_MODEL

Functions

test_model_attributes()

Check that model values are read in correctly and accessible in a way we

test_model_functions()

Test the core merge and split functions of the Model class to ensure

test_model_io(tmpdir)

Check that saving and loading npz file works

test_model_from_input_vector()

Check that we can instantiate a model from an input vector

test_custom_import()

Test that importing based on internal modules works for various inputs

Module Contents

seisflows.tests.test_tools.TEST_DIR
seisflows.tests.test_tools.TEST_MODEL
seisflows.tests.test_tools.test_model_attributes()

Check that model values are read in correctly and accessible in a way we expect

seisflows.tests.test_tools.test_model_functions()

Test the core merge and split functions of the Model class to ensure they give the same results

seisflows.tests.test_tools.test_model_io(tmpdir)

Check that saving and loading npz file works

seisflows.tests.test_tools.test_model_from_input_vector()

Check that we can instantiate a model from an input vector

seisflows.tests.test_tools.test_custom_import()

Test that importing based on internal modules works for various inputs :return: