Skip to content
Snippets Groups Projects
Commit d92d2a21 authored by Lan Dam's avatar Lan Dam
Browse files

make event DS when there are requested for waveform though TPS and RAW checkboxes aren't checked

parent c20000d0
No related branches found
No related tags found
1 merge request!164make event DS when there are requested for waveform though TPS and RAW checkboxes aren't checked
...@@ -423,31 +423,30 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow): ...@@ -423,31 +423,30 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow):
"TPS or RAW checkboxes checked.\nPlease clear the " "TPS or RAW checkboxes checked.\nPlease clear the "
"selection of waveform if you don't want to display the data.") "selection of waveform if you don't want to display the data.")
if self.tps_check_box.isChecked() or self.raw_check_box.isChecked(): if self.all_wf_chans_check_box.isChecked():
if self.all_wf_chans_check_box.isChecked(): req_mseed_wildcards = ['*']
req_mseed_wildcards = ['*'] req_dss = ['*'] # all data stream
req_dss = ['*'] # all data stream else:
else: req_dss = []
req_dss = [] req_mseed_wildcards = []
req_mseed_wildcards = [] for idx, ds_checkbox in enumerate(self.ds_check_boxes):
for idx, ds_checkbox in enumerate(self.ds_check_boxes): if ds_checkbox.isChecked():
if ds_checkbox.isChecked(): req_dss.append(idx + 1)
req_dss.append(idx + 1) if self.mseed_wildcard_edit.text().strip() != "":
if self.mseed_wildcard_edit.text().strip() != "": req_mseed_wildcards = self.mseed_wildcard_edit.text(
req_mseed_wildcards = self.mseed_wildcard_edit.text( ).split(",")
).split(",")
if self.data_type == 'RT130':
if self.data_type == 'RT130': req_wf_chans = req_dss
req_wf_chans = req_dss if req_dss != ['*'] and req_mseed_wildcards != []:
if req_dss != ['*'] and req_mseed_wildcards != []: msg = 'MSeed Wildcards will be ignored for RT130.'
msg = 'MSeed Wildcards will be ignored for RT130.' self.processing_log.append((msg, LogType.WARNING))
self.processing_log.append((msg, LogType.WARNING)) else:
else: req_wf_chans = req_mseed_wildcards
req_wf_chans = req_mseed_wildcards if req_mseed_wildcards != ['*'] and req_dss != []:
if req_mseed_wildcards != ['*'] and req_dss != []: msg = ('Checked data streams will be ignored for '
msg = ('Checked data streams will be ignored for ' 'none-RT130 data type.')
'none-RT130 data type.') self.processing_log.append((msg, LogType.WARNING))
self.processing_log.append((msg, LogType.WARNING))
return req_wf_chans return req_wf_chans
def get_requested_soh_chan(self): def get_requested_soh_chan(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment