From b52acafd294717c2c706e726df6902e6c14516a3 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Thu, 20 Mar 2025 11:55:26 +0100 Subject: [PATCH] Sediment calibration: Add test on fine data selection for interpolate. --- View/sediment_calibration_tab.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/View/sediment_calibration_tab.py b/View/sediment_calibration_tab.py index add79f0..19bf440 100644 --- a/View/sediment_calibration_tab.py +++ b/View/sediment_calibration_tab.py @@ -1569,6 +1569,10 @@ class SedimentCalibrationTab(QWidget): self._data_validity_message_box() return + if len(stg.fine_sample_profile) == 0: + self._data_validity_message_box() + return + data_choice = self.combobox_acoustic_data_choice\ .currentIndex() @@ -1659,8 +1663,8 @@ class SedimentCalibrationTab(QWidget): .scaledToHeight(32, Qt.SmoothTransformation) ) msgBox.setText( - "Please select and valid the sample data with" - + "click on 'sample plot' button" + "Please select and valid the find and sand" + + "sample data with click on 'sample plot' button" ) msgBox.setStandardButtons(QMessageBox.Ok) msgBox.exec()