Small RecSec PR to address #131 concerning zero amplitude traces. Previously, zero amplitude normalization would cause the NumPy trace arrays to become NaNs which would not plot, but would allow RecSec to continue running. There are now some guardrails in place to prevent these arrays from becoming NaNs.
Changelog:
If RecSec tries to normalize by 0, throws a warning and normalizes by 1 instead. May have unintentional consequences, but allows waveforms to be plotted
Feature: user can now set RecSec kwargs for obs_color and syn_color to change the color of observed and synthetic waveforms, previously these were hardcoded to black and red, respectively.
Adds Test to cover this case, not a great test but it atleast runs the case where amplitudes are 0, and will require a visual check to ensure that the waveforms are actual plotting.
Small RecSec PR to address #131 concerning zero amplitude traces. Previously, zero amplitude normalization would cause the NumPy trace arrays to become NaNs which would not plot, but would allow RecSec to continue running. There are now some guardrails in place to prevent these arrays from becoming NaNs.
Changelog:
obs_color
andsyn_color
to change the color of observed and synthetic waveforms, previously these were hardcoded to black and red, respectively.