[bugfix] using default channel components in case QSettings is not working with OS
This commit is contained in:
parent
66c5142cb9
commit
9e85a9df47
@ -35,7 +35,7 @@ from pylot.core.io.inputs import FilterOptions, AutoPickParameter
|
|||||||
from pylot.core.pick.utils import getSNR, earllatepicker, getnoisewin, \
|
from pylot.core.pick.utils import getSNR, earllatepicker, getnoisewin, \
|
||||||
getResolutionWindow
|
getResolutionWindow
|
||||||
from pylot.core.pick.compare import Comparison
|
from pylot.core.pick.compare import Comparison
|
||||||
from pylot.core.util.defaults import OUTPUTFORMATS, FILTERDEFAULTS, LOCTOOLS
|
from pylot.core.util.defaults import OUTPUTFORMATS, FILTERDEFAULTS, LOCTOOLS, SetChannelComponents
|
||||||
from pylot.core.util.utils import prepTimeAxis, full_range, scaleWFData, \
|
from pylot.core.util.utils import prepTimeAxis, full_range, scaleWFData, \
|
||||||
demeanTrace, isSorted, findComboBoxIndex, clims
|
demeanTrace, isSorted, findComboBoxIndex, clims
|
||||||
from autoPyLoT import autoPyLoT
|
from autoPyLoT import autoPyLoT
|
||||||
@ -2332,6 +2332,9 @@ class ChannelOrderTab(PropTab):
|
|||||||
|
|
||||||
settings = QSettings()
|
settings = QSettings()
|
||||||
compclass = settings.value('compclass')
|
compclass = settings.value('compclass')
|
||||||
|
if not compclass:
|
||||||
|
print('Warning: No settings for channel components found. Using default')
|
||||||
|
compclass = SetChannelComponents()
|
||||||
|
|
||||||
ChannelOrderLabelZ = QLabel("Channel Z [up/down, default=3]")
|
ChannelOrderLabelZ = QLabel("Channel Z [up/down, default=3]")
|
||||||
ChannelOrderLabelN = QLabel("Channel N [north/south, default=1]")
|
ChannelOrderLabelN = QLabel("Channel N [north/south, default=1]")
|
||||||
|
Loading…
Reference in New Issue
Block a user