From 7dc9054731cb78a8696291254f09a7668ad6d061 Mon Sep 17 00:00:00 2001
From: Lan <ldam@passcal.nmt.edu>
Date: Fri, 5 May 2023 14:18:07 -0600
Subject: [PATCH] fix bug in get_chan_plot_info that make 'DSP Clock Diff'
 regconize as data stream DS; add fixPoint=0 to waveform data

---
 sohstationviewer/database/extract_data.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sohstationviewer/database/extract_data.py b/sohstationviewer/database/extract_data.py
index c6cf6581b..7e45a458a 100755
--- a/sohstationviewer/database/extract_data.py
+++ b/sohstationviewer/database/extract_data.py
@@ -26,7 +26,7 @@ def get_chan_plot_info(org_chan_id: str, chan_info: Dict, data_type: str,
         chan = 'MassPos?'
     if org_chan_id.startswith('Event DS'):
         chan = 'Event DS?'
-    if org_chan_id.startswith('DS'):
+    if org_chan_id.startswith('DS') and 'DSP' not in org_chan_id:
         chan = 'DS?'
     if org_chan_id.startswith('Disk Usage'):
         chan = 'Disk Usage?'
@@ -96,6 +96,7 @@ def get_wf_plot_info(org_chan_id: str, *args, **kwargs) -> Dict:
     chan_info[0]['unit'] = ''
     chan_info[0]['channel'] = 'SEISMIC'
     chan_info[0]['convertFactor'] = 1
+    chan_info[0]['fixPoint'] = 0
     return chan_info[0]
 
 
-- 
GitLab