[rename] real_Bool/real_None -> get_Bool/get_None

This commit is contained in:
marcel committed 2019-06-24 15:05:04 +02:00
1 parent 2687d6cdef
commit 2d775fa1b9
6 files changed
+30 -30

No files matched your search

+3 -3
View File
@@ -315,7 +315,7 @@ def fnConstructor(s):
return fn
def real_None(value):
def get_None(value):
"""
Convert "None" to None
:param value:
@@ -329,7 +329,7 @@ def real_None(value):
return value
def real_Bool(value):
def get_Bool(value):
"""
Convert string representations of bools to their true boolean value
:param value:
@@ -1231,7 +1231,7 @@ def correct_iplot(iplot):
try:
iplot = int(iplot)
except ValueError:
if real_Bool(iplot):
if get_Bool(iplot):
iplot = 2
else:
iplot = 0
+6 -6
View File
@@ -51,7 +51,7 @@ from pylot.core.util.utils import prepTimeAxis, full_range, demeanTrace, isSorte
pick_linestyle_plt, pick_color_plt, \
check4rotated, check4doubled, merge_stream, identifyPhase, \
loopIdentifyPhase, trim_station_components, transformFilteroptions2String, \
identifyPhaseID, real_Bool, pick_color, getAutoFilteroptions, SetChannelComponents, station_id_remove_channel
identifyPhaseID, get_Bool, pick_color, getAutoFilteroptions, SetChannelComponents, station_id_remove_channel
from autoPyLoT import autoPyLoT
from pylot.core.util.thread import Thread
from pylot.core.util.dataprocessing import Metadata
@@ -1812,7 +1812,7 @@ class PickDlg(QDialog):
self.sChannels.triggered.connect(self.updateChannelSettingsS)
settings = QSettings()
self.autoFilterAction.setChecked(real_Bool(settings.value('autoFilter')))
self.autoFilterAction.setChecked(get_Bool(settings.value('autoFilter')))
# create other widget elements
phaseitems = [None] + list(FILTERDEFAULTS.keys())
@@ -2287,7 +2287,7 @@ class PickDlg(QDialog):
settings = QSettings()
phaseID = self.getPhaseID(phase)
if real_Bool(settings.value('useGuiFilter')) or gui_filter:
if get_Bool(settings.value('useGuiFilter')) or gui_filter:
filteroptions = self.filteroptions[phaseID]
else:
filteroptions = getAutoFilteroptions(phaseID, self.parameter)
@@ -2938,7 +2938,7 @@ class PickDlg(QDialog):
@staticmethod
def getChannelSettingsP(channel):
settings = QSettings()
rval = real_Bool(settings.value('p_channel_{}'.format(channel)))
rval = get_Bool(settings.value('p_channel_{}'.format(channel)))
compclass = settings.value('compclass')
components = ['Z']
for component in components[:]:
@@ -2953,7 +2953,7 @@ class PickDlg(QDialog):
@staticmethod
def getChannelSettingsS(channel):
settings = QSettings()
rval = real_Bool(settings.value('s_channel_{}'.format(channel)))
rval = get_Bool(settings.value('s_channel_{}'.format(channel)))
compclass = settings.value('compclass')
components = ['N', 'E']
for component in components[:]:
@@ -5068,7 +5068,7 @@ class FilterOptionsDialog(QDialog):
'S': QtGui.QGroupBox('S Filter')}
settings = QSettings()
overwriteFilter = real_Bool(settings.value('useGuiFilter'))
overwriteFilter = get_Bool(settings.value('useGuiFilter'))
self.overwriteFilterCheckbox = QCheckBox('Overwrite filteroptions')
self.overwriteFilterCheckbox.setToolTip('Overwrite filter settings for refined pick with GUI settings')