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

Merge branch 'master' into i91_gap_bar_waveformwidget

parents 43595399 d47eb3f4
No related branches found
No related tags found
1 merge request!117Showing gap bar in waveform widget
Pipeline #2536 passed with stage
in 2 minutes and 31 seconds
......@@ -540,11 +540,14 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow):
else:
self.min_gap = None
try:
check_chan_wildcards_format(self.mseed_wildcard_edit.text())
except Exception as e:
QtWidgets.QMessageBox.warning(self, "Incorrect Wildcard", str(e))
return
if self.mseed_wildcard_edit.text().strip() != '':
try:
check_chan_wildcards_format(self.mseed_wildcard_edit.text())
except Exception as e:
QtWidgets.QMessageBox.warning(
self, "Incorrect Wildcard", str(e))
return
try:
del self.data_object
self.processing_log = []
......
......@@ -170,7 +170,7 @@ def check_chan_wildcards_format(wildcards: str):
:param wildcards: wildcards that are separated with ','.
:type wildcards: str
"""
for wc in wildcards.split():
for wc in wildcards.split(','):
wc = wc.strip()
if len(wc) == 1 and wc != '*':
......
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