mirror of
https://forgemia.inra.fr/theophile.terraz/acoused.git
synced 2026-10-30 03:10:40 +01:00
SQL: Fix save study after open.
This commit is contained in:
1 parent
57108455ce
commit
714be64915
3 files changed
+29
-18
No files matched your search
@@ -543,7 +543,8 @@ class CreateTableForSaveAs:
|
||||
np.array(stg.X_exponent).tobytes(),
|
||||
np.array(stg.alpha_s).tobytes(),
|
||||
np.array(stg.zeta).tobytes(),
|
||||
stg.FCB.tobytes(), stg.depth_real.tobytes(),
|
||||
np.array(stg.FCB).tobytes(),
|
||||
np.array(stg.depth_real).tobytes(),
|
||||
np.array(stg.lin_reg).tobytes()
|
||||
)
|
||||
)
|
||||
|
||||
@@ -207,21 +207,29 @@ class UpdateTableForSave:
|
||||
BS_mean)
|
||||
VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)''',
|
||||
(stg.acoustic_data[i], stg.time[i].tobytes(), stg.depth[i].tobytes(), stg.BS_raw_data[i].tobytes(),
|
||||
stg.time_reshape[i].tobytes(), stg.depth_reshape[i].tobytes(), stg.BS_raw_data_reshape[i].tobytes(),
|
||||
stg.time_cross_section[i].tobytes(), stg.depth_cross_section[i].tobytes(), stg.BS_cross_section[i].tobytes(),
|
||||
stg.BS_stream_bed[i].tobytes(),
|
||||
stg.depth_bottom[i].tobytes(), stg.val_bottom[i].tobytes(), np.array(stg.ind_bottom[i]).tobytes(),
|
||||
stg.time_noise[i].tobytes(), stg.depth_noise[i].tobytes(),
|
||||
stg.BS_noise_raw_data[i].tobytes(),
|
||||
stg.SNR_raw_data[i].tobytes(), stg.SNR_cross_section[i].tobytes(),
|
||||
stg.SNR_stream_bed[i].tobytes(),
|
||||
stg.BS_raw_data_pre_process_SNR[i].tobytes(),
|
||||
stg.BS_raw_data_pre_process_average[i].tobytes(),
|
||||
stg.BS_cross_section_pre_process_SNR[i].tobytes(),
|
||||
stg.BS_cross_section_pre_process_average[i].tobytes(),
|
||||
stg.BS_stream_bed_pre_process_SNR[i].tobytes(),
|
||||
stg.BS_stream_bed_pre_process_average[i].tobytes(),
|
||||
stg.BS_mean[i].tobytes()
|
||||
stg.time_reshape[i].tobytes(),
|
||||
stg.depth_reshape[i].tobytes(),
|
||||
stg.BS_raw_data_reshape[i].tobytes(),
|
||||
stg.time_cross_section[i].tobytes(),
|
||||
stg.depth_cross_section[i].tobytes(),
|
||||
stg.BS_cross_section[i].tobytes(),
|
||||
np.array(stg.BS_stream_bed[i]).tobytes(),
|
||||
np.array(stg.depth_bottom[i]).tobytes(),
|
||||
np.array(stg.val_bottom[i]).tobytes(),
|
||||
np.array(stg.ind_bottom[i]).tobytes(),
|
||||
np.array(stg.time_noise[i]).tobytes(),
|
||||
np.array(stg.depth_noise[i]).tobytes(),
|
||||
np.array(stg.BS_noise_raw_data[i]).tobytes(),
|
||||
np.array(stg.SNR_raw_data[i]).tobytes(),
|
||||
np.array(stg.SNR_cross_section[i]).tobytes(),
|
||||
np.array(stg.SNR_stream_bed[i]).tobytes(),
|
||||
np.array(stg.BS_raw_data_pre_process_SNR[i]).tobytes(),
|
||||
np.array(stg.BS_raw_data_pre_process_average[i]).tobytes(),
|
||||
np.array(stg.BS_cross_section_pre_process_SNR[i]).tobytes(),
|
||||
np.array(stg.BS_cross_section_pre_process_average[i]).tobytes(),
|
||||
np.array(stg.BS_stream_bed_pre_process_SNR[i]).tobytes(),
|
||||
np.array(stg.BS_stream_bed_pre_process_average[i]).tobytes(),
|
||||
np.array(stg.BS_mean[i]).tobytes()
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user