diff --git a/sohstationviewer/model/general_data/data_structures.MD b/sohstationviewer/model/general_data/data_structures.MD index 36a59d5fad70a9e67d582b3df0e0c6d976448404..05e4a0b33377711c022ef3c01c695ad85749a9b5 100644 --- a/sohstationviewer/model/general_data/data_structures.MD +++ b/sohstationviewer/model/general_data/data_structures.MD @@ -25,8 +25,9 @@ Note: log_data for RT130's dataset has only one channel: SOH 'data' (np.array): data that has been trimmed and down-sampled for plotting 'chan_db_info' (dict): the plotting parameters got from database for this channel - dict, - ax: axes to draw the channel in PlottingWidget - ax_wf (matplotlib.axes.Axes): axes to draw the channel in WaveformWidget + 'ax': axes to draw the channel in PlottingWidget + 'ax_wf' (matplotlib.axes.Axes): axes to draw the channel in WaveformWidget + 'show': flag to show or hide channel } } diff --git a/sohstationviewer/model/mseed_data/mseed_reader.py b/sohstationviewer/model/mseed_data/mseed_reader.py index f5addd856e8eab20778d0b99e36cd2dfa563faae..cc05017fa3a5b99b3adb09970c3b9e01f3b21188 100644 --- a/sohstationviewer/model/mseed_data/mseed_reader.py +++ b/sohstationviewer/model/mseed_data/mseed_reader.py @@ -220,7 +220,8 @@ class MSeedReader: 'endTmEpoch': meta.end_time, 'data': [data_point], 'times': [meta.start_time] - }] + }], + 'show': True } else: channel = station[chan_id] diff --git a/sohstationviewer/model/reftek_data/log_info.py b/sohstationviewer/model/reftek_data/log_info.py index 8c2f46b46baa199d564df483364fe01d6197a235..01f6466938414324ad100321aa92082a35756fb0 100644 --- a/sohstationviewer/model/reftek_data/log_info.py +++ b/sohstationviewer/model/reftek_data/log_info.py @@ -328,6 +328,7 @@ class LogInfo(): 'reftek': True, 'samplerate': 1, 'chanID': chan_id, + 'show': True, 'tracesInfo': [{ 'unitID': self.unit_id, 'expNo': self.exp_no, diff --git a/sohstationviewer/model/reftek_data/reftek_helper.py b/sohstationviewer/model/reftek_data/reftek_helper.py index 69972c783ff8fc361ce7995cf74777ab62cc7d7e..448398fa9b760b5cd6a105f4370ed1c2dafc0477 100644 --- a/sohstationviewer/model/reftek_data/reftek_helper.py +++ b/sohstationviewer/model/reftek_data/reftek_helper.py @@ -50,7 +50,8 @@ def check_reftek_header( samplerate = trace.stats['sampling_rate'] if chan_id not in cur_data_dict: cur_data_dict[chan_id] = {'tracesInfo': [], - 'samplerate': samplerate} + 'samplerate': samplerate, + 'show': True} if trace.stats.npts == 0: # this trace isn't available to prevent bug when creating memmap # with no data