test_recsec#

Test the general functionality of the RECord SECtion plotter.

Note

This test suite simply creates some plots to make sure the general machinery is working as expected, but otherwise has no real solid checks on the outputs. If this code grows more cumbersome, we will want to do figure matching checks or something more sophisticated.

Module Contents#

Functions#

recsec(tmpdir)

Initiate a RecordSection instance

recsec_w_synthetics(tmpdir)

Initiate a RecordSection instance

test_plot_recsec(recsec)

Simply test out the functinoality of plotw_rs

test_plot_recsec_w_synthetics(recsec_w_synthetics)

Simply test out the functinoality of plotw_rs

test_plot_recsec_sort_by(recsec)

Simply test out the functinoality of plotw_rs

test_plot_recsec_scale_by(recsec)

scale by option testing

test_plot_recsec_time_shift(recsec)

apply a whole bunch of time shift elements

test_plot_recsec_preprocess(recsec)

preprocess and filter the record section

test_plot_recsec_y_label_loc(recsec)

test all available y_label locations options

test_plot_recsec_distance_units(recsec)

test all available distance units

test_plot_recsec_plot_options(recsec)

test plotting options

test_recsec_calc_time_offset(recsec_w_synthetics)

testing that synthetics and data which do not share origin time

test_recsec.recsec(tmpdir)[source]#

Initiate a RecordSection instance

test_recsec.recsec_w_synthetics(tmpdir)[source]#

Initiate a RecordSection instance

test_recsec.test_plot_recsec(recsec)[source]#

Simply test out the functinoality of plotw_rs

test_recsec.test_plot_recsec_w_synthetics(recsec_w_synthetics)[source]#

Simply test out the functinoality of plotw_rs

test_recsec.test_plot_recsec_sort_by(recsec)[source]#

Simply test out the functinoality of plotw_rs

test_recsec.test_plot_recsec_scale_by(recsec)[source]#

scale by option testing

test_recsec.test_plot_recsec_time_shift(recsec)[source]#

apply a whole bunch of time shift elements

test_recsec.test_plot_recsec_preprocess(recsec)[source]#

preprocess and filter the record section

test_recsec.test_plot_recsec_y_label_loc(recsec)[source]#

test all available y_label locations options

test_recsec.test_plot_recsec_distance_units(recsec)[source]#

test all available distance units

test_recsec.test_plot_recsec_plot_options(recsec)[source]#

test plotting options

test_recsec.test_recsec_calc_time_offset(recsec_w_synthetics)[source]#

testing that synthetics and data which do not share origin time plot together correctly by checking that the time offsets are calced