From e3100562da3ed3ccce1bdbfb9f1eaf1f845a9a69 Mon Sep 17 00:00:00 2001 From: Marcel Paffrath Date: Wed, 13 Jul 2016 10:04:13 +0200 Subject: [PATCH] pseudo 2D model generation working after some fixes (+2 cushion for propgrid) --- pylot/core/active/asp3d_layout.py | 2 +- pylot/core/active/fmtomo_parameters_layout.py | 75 ++++++++++--------- .../core/active/generate_seisarray_layout.py | 2 +- pylot/core/active/generate_survey_layout.py | 2 +- .../active/generate_survey_layout_minimal.py | 2 +- .../core/active/picking_parameters_layout.py | 4 +- pylot/core/active/seismicArrayPreparation.py | 9 ++- pylot/core/active/vtk_tools_layout.py | 2 +- 8 files changed, 55 insertions(+), 43 deletions(-) diff --git a/pylot/core/active/asp3d_layout.py b/pylot/core/active/asp3d_layout.py index 96ac98b9..3392a068 100644 --- a/pylot/core/active/asp3d_layout.py +++ b/pylot/core/active/asp3d_layout.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'asp3d_layout.ui' # -# Created: Tue Jul 12 14:03:29 2016 +# Created: Tue Jul 12 21:41:12 2016 # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost! diff --git a/pylot/core/active/fmtomo_parameters_layout.py b/pylot/core/active/fmtomo_parameters_layout.py index 4689a38c..04f4ad60 100644 --- a/pylot/core/active/fmtomo_parameters_layout.py +++ b/pylot/core/active/fmtomo_parameters_layout.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'fmtomo_parameters_layout.ui' # -# Created: Tue Jul 12 14:03:29 2016 +# Created: Tue Jul 12 21:41:12 2016 # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost! @@ -105,8 +105,10 @@ class Ui_fmtomo_parameters(object): self.label_13 = QtGui.QLabel(fmtomo_parameters) self.label_13.setObjectName("label_13") self.horizontalLayout.addWidget(self.label_13) - self.cushion = QtGui.QLineEdit(fmtomo_parameters) - self.cushion.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) + self.cushion = QtGui.QSpinBox(fmtomo_parameters) + self.cushion.setMinimum(2) + self.cushion.setMaximum(100) + self.cushion.setProperty("value", 10) self.cushion.setObjectName("cushion") self.horizontalLayout.addWidget(self.cushion) self.label_12 = QtGui.QLabel(fmtomo_parameters) @@ -159,34 +161,46 @@ class Ui_fmtomo_parameters(object): self.label_7.setAlignment(QtCore.Qt.AlignCenter) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 0, 3, 1, 1) - self.label_8 = QtGui.QLabel(fmtomo_parameters) - self.label_8.setObjectName("label_8") - self.gridLayout.addWidget(self.label_8, 1, 0, 1, 1) - self.pgrid_x = QtGui.QLineEdit(fmtomo_parameters) - self.pgrid_x.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) - self.pgrid_x.setObjectName("pgrid_x") - self.gridLayout.addWidget(self.pgrid_x, 1, 1, 1, 1) - self.pgrid_y = QtGui.QLineEdit(fmtomo_parameters) - self.pgrid_y.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) - self.pgrid_y.setObjectName("pgrid_y") - self.gridLayout.addWidget(self.pgrid_y, 1, 2, 1, 1) - self.pgrid_z = QtGui.QLineEdit(fmtomo_parameters) - self.pgrid_z.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) - self.pgrid_z.setObjectName("pgrid_z") - self.gridLayout.addWidget(self.pgrid_z, 1, 3, 1, 1) self.label_9 = QtGui.QLabel(fmtomo_parameters) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 2, 0, 1, 1) - self.invgrid_x = QtGui.QLineEdit(fmtomo_parameters) - self.invgrid_x.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) + self.pgrid_x = QtGui.QSpinBox(fmtomo_parameters) + self.pgrid_x.setMinimum(2) + self.pgrid_x.setMaximum(10000) + self.pgrid_x.setProperty("value", 100) + self.pgrid_x.setObjectName("pgrid_x") + self.gridLayout.addWidget(self.pgrid_x, 1, 1, 1, 1) + self.pgrid_y = QtGui.QSpinBox(fmtomo_parameters) + self.pgrid_y.setMinimum(2) + self.pgrid_y.setMaximum(10000) + self.pgrid_y.setProperty("value", 100) + self.pgrid_y.setObjectName("pgrid_y") + self.gridLayout.addWidget(self.pgrid_y, 1, 2, 1, 1) + self.pgrid_z = QtGui.QSpinBox(fmtomo_parameters) + self.pgrid_z.setMinimum(2) + self.pgrid_z.setMaximum(10000) + self.pgrid_z.setProperty("value", 120) + self.pgrid_z.setObjectName("pgrid_z") + self.gridLayout.addWidget(self.pgrid_z, 1, 3, 1, 1) + self.label_8 = QtGui.QLabel(fmtomo_parameters) + self.label_8.setObjectName("label_8") + self.gridLayout.addWidget(self.label_8, 1, 0, 1, 1) + self.invgrid_x = QtGui.QSpinBox(fmtomo_parameters) + self.invgrid_x.setMinimum(2) + self.invgrid_x.setMaximum(10000) + self.invgrid_x.setProperty("value", 60) self.invgrid_x.setObjectName("invgrid_x") self.gridLayout.addWidget(self.invgrid_x, 2, 1, 1, 1) - self.invgrid_y = QtGui.QLineEdit(fmtomo_parameters) - self.invgrid_y.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) + self.invgrid_y = QtGui.QSpinBox(fmtomo_parameters) + self.invgrid_y.setMinimum(2) + self.invgrid_y.setMaximum(10000) + self.invgrid_y.setProperty("value", 60) self.invgrid_y.setObjectName("invgrid_y") self.gridLayout.addWidget(self.invgrid_y, 2, 2, 1, 1) - self.invgrid_z = QtGui.QLineEdit(fmtomo_parameters) - self.invgrid_z.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) + self.invgrid_z = QtGui.QSpinBox(fmtomo_parameters) + self.invgrid_z.setMinimum(2) + self.invgrid_z.setMaximum(10000) + self.invgrid_z.setProperty("value", 80) self.invgrid_z.setObjectName("invgrid_z") self.gridLayout.addWidget(self.invgrid_z, 2, 3, 1, 1) self.verticalLayout.addLayout(self.gridLayout) @@ -255,24 +269,17 @@ class Ui_fmtomo_parameters(object): self.label_13.setToolTip(QtGui.QApplication.translate("fmtomo_parameters", "Extension of the model around the maximum values of the receiver grid (X and Y).\n" "Too low values will cause error.", None, QtGui.QApplication.UnicodeUTF8)) self.label_13.setText(QtGui.QApplication.translate("fmtomo_parameters", "Cushion factor [?]", None, QtGui.QApplication.UnicodeUTF8)) - self.cushion.setText(QtGui.QApplication.translate("fmtomo_parameters", "10", None, QtGui.QApplication.UnicodeUTF8)) self.label_12.setText(QtGui.QApplication.translate("fmtomo_parameters", "%", None, QtGui.QApplication.UnicodeUTF8)) self.label_4.setText(QtGui.QApplication.translate("fmtomo_parameters", "Number of Ponts", None, QtGui.QApplication.UnicodeUTF8)) self.label_5.setText(QtGui.QApplication.translate("fmtomo_parameters", "X", None, QtGui.QApplication.UnicodeUTF8)) self.label_6.setText(QtGui.QApplication.translate("fmtomo_parameters", "Y", None, QtGui.QApplication.UnicodeUTF8)) self.label_7.setText(QtGui.QApplication.translate("fmtomo_parameters", "Z", None, QtGui.QApplication.UnicodeUTF8)) - self.label_8.setToolTip(QtGui.QApplication.translate("fmtomo_parameters", "Number of points for forward simulation in X, Y, Z.\n" -"Must be higher than number of inversion grid points.", None, QtGui.QApplication.UnicodeUTF8)) - self.label_8.setText(QtGui.QApplication.translate("fmtomo_parameters", "Propagation Grid [?]", None, QtGui.QApplication.UnicodeUTF8)) - self.pgrid_x.setText(QtGui.QApplication.translate("fmtomo_parameters", "100", None, QtGui.QApplication.UnicodeUTF8)) - self.pgrid_y.setText(QtGui.QApplication.translate("fmtomo_parameters", "100", None, QtGui.QApplication.UnicodeUTF8)) - self.pgrid_z.setText(QtGui.QApplication.translate("fmtomo_parameters", "100", None, QtGui.QApplication.UnicodeUTF8)) self.label_9.setToolTip(QtGui.QApplication.translate("fmtomo_parameters", "Number of inversion grid (velocity grid) points in X, Y, Z.\n" "Must be lower than for propagation grid.", None, QtGui.QApplication.UnicodeUTF8)) self.label_9.setText(QtGui.QApplication.translate("fmtomo_parameters", "Inversion Grid [?]", None, QtGui.QApplication.UnicodeUTF8)) - self.invgrid_x.setText(QtGui.QApplication.translate("fmtomo_parameters", "50", None, QtGui.QApplication.UnicodeUTF8)) - self.invgrid_y.setText(QtGui.QApplication.translate("fmtomo_parameters", "50", None, QtGui.QApplication.UnicodeUTF8)) - self.invgrid_z.setText(QtGui.QApplication.translate("fmtomo_parameters", "50", None, QtGui.QApplication.UnicodeUTF8)) + self.label_8.setToolTip(QtGui.QApplication.translate("fmtomo_parameters", "Number of points for forward simulation in X, Y, Z.\n" +"Must be higher than number of inversion grid points.", None, QtGui.QApplication.UnicodeUTF8)) + self.label_8.setText(QtGui.QApplication.translate("fmtomo_parameters", "Propagation Grid [?]", None, QtGui.QApplication.UnicodeUTF8)) self.label_15.setToolTip(QtGui.QApplication.translate("fmtomo_parameters", "\n" "