Closed thurinj closed 5 months ago
Julien, Thanks for these changes-- let me respond in detail this afternoon.
| Alternative solution: Make ProcessData() allocate the static_time_shift directly in trace.attrs
vote for this solution, so that statics get included when Amanda or I write out attrs to a dictionary
This has been addressed by @rmodrak latest PR.
The utility function that reads attributes to be plotted as annotations by the waveform plot has been modified to check if
trace.attrs.static_time_shift
ortrace.static_time_shift
exist.trace.static_time_shift
is set as trace attribute by ProcessData() during the pre-processing stage, and it was not correctly checked by the current function. After this fix, the annotations correctly account for static correction being applied to the synthetics (tested on 2009 example case).Alternative solution: Make ProcessData() allocate the
static_time_shift
directly intrace.attrs
, if we want to keep all plotting attributes grouped within a single group. This might not be completely straightforward depending on the list of all attributes that are allocated inattrs
by the code (do we need several attributes groups?).