From 45cefa4149001ccb25f69c6689da4336e56ba6ce Mon Sep 17 00:00:00 2001 From: kienle <kienle@passcal.nmt.edu> Date: Mon, 24 Jul 2023 11:07:35 -0600 Subject: [PATCH] Fix waveform plot for RT130 data --- sohstationviewer/model/reftek/from_rt2ms/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sohstationviewer/model/reftek/from_rt2ms/core.py b/sohstationviewer/model/reftek/from_rt2ms/core.py index 899026a77..e6e0b7a0a 100644 --- a/sohstationviewer/model/reftek/from_rt2ms/core.py +++ b/sohstationviewer/model/reftek/from_rt2ms/core.py @@ -153,8 +153,8 @@ class Reftek130(obspy_rt130_core.Reftek130): npts = len(sample_data) tr = Trace(data=sample_data, header=copy.deepcopy(header)) - tr.stats.npts = packets_['number_of_samples'].sum() - tr.stats.actual_npts = npts + tr.stats.npts = npts + tr.stats.actual_npts = packets_['number_of_samples'].sum() # channel number is not included in the EH/ET packet # payload, so add it to stats as well.. tr.stats.reftek130['channel_number'] = channel_number -- GitLab