diff --git a/View/sediment_calibration_tab.py b/View/sediment_calibration_tab.py index 658e135..f6bea34 100644 --- a/View/sediment_calibration_tab.py +++ b/View/sediment_calibration_tab.py @@ -1606,7 +1606,7 @@ class SedimentCalibrationTab(QWidget): for k in stg.fine_sample_profile ] - r_bottom = stg.depth_bottom[data_choice][ + r_bottom = [stg.depth_bottom[data_choice][ np.where( np.abs( time_data[data_choice][ @@ -1621,7 +1621,7 @@ class SedimentCalibrationTab(QWidget): - stg.time_fine[stg.fine_sample_profile[-1][1]]) ) )[0][0] - ] + ] if len(stg.depth_bottom[data_choice])!=0 else np.array([])][0] logger.debug( "call 'inv_hc.M_profile_SCC_fine_interpolated' params:"