Merge branch 'master' into cxh_dev

This commit is contained in:
marques
2025-06-04 16:32:45 +08:00
17 changed files with 288 additions and 83 deletions

View File

@ -1046,6 +1046,10 @@ class Data:
})
df.to_csv(Path(Config["Path"]["Save"]), mode="w", header=True, index=False)
except PermissionError as e:
return Result().failure(info=Constants.SAVE_FAILURE + Constants.FAILURE_REASON["Save_Permission_Denied"])
except FileNotFoundError as e:
return Result().failure(info=Constants.SAVE_FAILURE + Constants.FAILURE_REASON["Save_File_Not_Found"])
except Exception as e:
return Result().failure(info=Constants.SAVE_FAILURE + Constants.FAILURE_REASON[
"Save_Exception"] + "\n" + format_exc())
@ -1307,7 +1311,6 @@ class Data:
tho_bias_list.append(tho_seg_pos / temp_freq)
abd_bias_list.append(abd_seg_pos / temp_freq)
result = {
"tho_bias_list": tho_bias_list,
"abd_bias_list": abd_bias_list,
@ -1315,7 +1318,6 @@ class Data:
"epoch_max": epoch_max
}
except Exception as e:
return Result().failure(
info=Constants.APPROXIMATELY_EPOCH_GET_FAILURE + Constants.FAILURE_REASON[