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¶
|
Initiate a RecordSection instance |
|
Initiate a RecordSection instance |
|
Simply test out the functinoality of plotw_rs |
|
Simply test out the functinoality of plotw_rs |
|
Simply test out the functinoality of plotw_rs |
|
scale by option testing |
|
apply a whole bunch of time shift elements |
|
preprocess and filter the record section |
|
test all available y_label locations options |
|
test all available distance units |
|
test plotting options |
|
testing that synthetics and data which do not share origin time |
|
waveforms that have zero amplitude and are normalized should be able |
- test_recsec.test_plot_recsec_w_synthetics(recsec_w_synthetics)[source]¶
Simply test out the functinoality of plotw_rs
- test_recsec.test_plot_recsec_y_label_loc(recsec)[source]¶
test all available y_label locations 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
- test_recsec.test_recsec_zero_amplitude(recsec)[source]¶
waveforms that have zero amplitude and are normalized should be able to bypass normalizations which lead to weird plotting (see #131).
Note
This does not really test that the method is working correctly because dividing a NumPy array by zero leads to NaNs in the array which just won’t plot. This is more of a visual test to make sure that the zero amplitude is plotting correctly, look for green lines