From 74066a9202444cf8ee6a499459c4052c82a5f08a Mon Sep 17 00:00:00 2001
From: ldam <ldam@passcal.nmt.edu>
Date: Thu, 7 Mar 2024 15:09:09 -0700
Subject: [PATCH] simplify condition to check show key

---
 .../plotting/plotting_widget/multi_threaded_plotting_widget.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sohstationviewer/view/plotting/plotting_widget/multi_threaded_plotting_widget.py b/sohstationviewer/view/plotting/plotting_widget/multi_threaded_plotting_widget.py
index aa0309a28..397361e17 100644
--- a/sohstationviewer/view/plotting/plotting_widget/multi_threaded_plotting_widget.py
+++ b/sohstationviewer/view/plotting/plotting_widget/multi_threaded_plotting_widget.py
@@ -187,8 +187,7 @@ class MultiThreadedPlottingWidget(PlottingWidget):
         for chan_id in chan_order:
             if 'chan_db_info' not in plotting_data[chan_id]:
                 continue
-            if ('show' in plotting_data[chan_id] and
-                    not plotting_data[chan_id]['show']):
+            if not plotting_data[chan_id].get('show'):
                 continue
             channel_processor = PlottingChannelProcessor(
                 plotting_data[chan_id], chan_id,
-- 
GitLab