diff --git a/sohstationviewer/model/reftek/from_rt2ms/core.py b/sohstationviewer/model/reftek/from_rt2ms/core.py index e6e0b7a0a8222907a5222969050dae0197dd3ae9..899026a77d8c919aa1a547ba8dee63b31be917e8 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 = npts - tr.stats.actual_npts = packets_['number_of_samples'].sum() + tr.stats.npts = packets_['number_of_samples'].sum() + tr.stats.actual_npts = npts # 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