[add] parameter localMag added
This commit is contained in:
parent
62a7d94816
commit
0ff6f78a6c
@ -1 +1 @@
|
|||||||
1b17-dirty
|
a8544-dirty
|
||||||
|
@ -274,6 +274,10 @@ defaults = {'rootpath': {'type': str,
|
|||||||
'value': 6.0},
|
'value': 6.0},
|
||||||
|
|
||||||
'wdttolerance': {'type': float,
|
'wdttolerance': {'type': float,
|
||||||
|
'tooltip': 'maximum allowed deviation from Wadati-diagram',
|
||||||
|
'value': 1.0},
|
||||||
|
|
||||||
|
'localMag': {'type': float,
|
||||||
'tooltip': 'maximum allowed deviation from Wadati-diagram',
|
'tooltip': 'maximum allowed deviation from Wadati-diagram',
|
||||||
'value': 1.0}
|
'value': 1.0}
|
||||||
}
|
}
|
||||||
@ -297,7 +301,8 @@ settings_main={
|
|||||||
'smoment':[
|
'smoment':[
|
||||||
'vp',
|
'vp',
|
||||||
'rho',
|
'rho',
|
||||||
'Qp'],
|
'Qp',
|
||||||
|
'localMag'],
|
||||||
'pick':[
|
'pick':[
|
||||||
'extent',
|
'extent',
|
||||||
'pstart',
|
'pstart',
|
||||||
|
@ -2228,6 +2228,8 @@ class AutoPickParaBox(QtGui.QWidget):
|
|||||||
if type(box) == QtGui.QLineEdit:
|
if type(box) == QtGui.QLineEdit:
|
||||||
box.setText(str(value))
|
box.setText(str(value))
|
||||||
elif type(box) == QtGui.QSpinBox or type(box) == QtGui.QDoubleSpinBox:
|
elif type(box) == QtGui.QSpinBox or type(box) == QtGui.QDoubleSpinBox:
|
||||||
|
if not value:
|
||||||
|
value = 0.
|
||||||
box.setValue(value)
|
box.setValue(value)
|
||||||
elif type(box) == QtGui.QCheckBox:
|
elif type(box) == QtGui.QCheckBox:
|
||||||
if value == 'True':
|
if value == 'True':
|
||||||
|
Loading…
Reference in New Issue
Block a user