pyatoa.tests.test_utils

Test all the various utility functions except for the processing functions, which get their own test suite.

Module Contents

Functions

station_fid()

Re-used test data pointing to STATIONS file

sem_fid(tmpdir)

Re-used test data pointing to a two-column ascii file representing

ds()

Test ASDFDataSet

test_traveltime_adjoint_source()

!!! TO DO

test_calc_utils()

Wrapping all the calculate utilities into a single function because they're

test_form_utils()

Test the string formatting utilities which ensures that IO is standardized

test_write_utils(tmpdir, station_fid, sem_fid, ds)

Test write utilities

pyatoa.tests.test_utils.station_fid()[source]

Re-used test data pointing to STATIONS file

pyatoa.tests.test_utils.sem_fid(tmpdir)[source]

Re-used test data pointing to a two-column ascii file representing SPECFEM3D seismograms

pyatoa.tests.test_utils.ds()[source]

Test ASDFDataSet

pyatoa.tests.test_utils.test_traveltime_adjoint_source()[source]

!!! TO DO

pyatoa.tests.test_utils.test_calc_utils()[source]

Wrapping all the calculate utilities into a single function because they’re all pretty basic, but it’s good to know they function the same each time

pyatoa.tests.test_utils.test_form_utils()[source]

Test the string formatting utilities which ensures that IO is standardized throughout the package. Again, place them all in the same function.

pyatoa.tests.test_utils.test_write_utils(tmpdir, station_fid, sem_fid, ds)[source]

Test write utilities