mirror of
https://forgemia.inra.fr/theophile.terraz/acoused.git
synced 2026-10-30 03:10:40 +01:00
Sediment calibration: Fix FCB computation without values.
This commit is contained in:
1 parent
815610ab20
commit
4a8b318ea4
1 file changed
+5
-2
@@ -2414,6 +2414,10 @@ class SedimentCalibrationTab(QWidget):
|
|||||||
data_id = self.combobox_acoustic_data_choice.currentIndex()
|
data_id = self.combobox_acoustic_data_choice.currentIndex()
|
||||||
fcb_id = self.combobox_frequency_FCB.currentIndex()
|
fcb_id = self.combobox_frequency_FCB.currentIndex()
|
||||||
|
|
||||||
|
if (self.lineEdit_FCB_from.text() == ''
|
||||||
|
or self.lineEdit_FCB_to.text() == ''):
|
||||||
|
return
|
||||||
|
|
||||||
self.update_plot_FCB()
|
self.update_plot_FCB()
|
||||||
|
|
||||||
if stg.FCB.shape == (0,):
|
if stg.FCB.shape == (0,):
|
||||||
@@ -2437,8 +2441,7 @@ class SedimentCalibrationTab(QWidget):
|
|||||||
np.round(
|
np.round(
|
||||||
np.abs(
|
np.abs(
|
||||||
x - float(
|
x - float(
|
||||||
self.lineEdit_FCB_from\
|
self.lineEdit_FCB_from.text().replace(',','.')
|
||||||
.text().replace(',','.')
|
|
||||||
)
|
)
|
||||||
), 2
|
), 2
|
||||||
) == np.min(
|
) == np.min(
|
||||||
|
|||||||
Reference in new issue
Block a user