Index: dialin/utils/excel_ops.py =================================================================== diff -u -ra7253ef8e885d542d22539cd1e4c608f7ce63eb5 -ra0a21a6b708f437875f8af1dc3e813e3342af449 --- dialin/utils/excel_ops.py (.../excel_ops.py) (revision a7253ef8e885d542d22539cd1e4c608f7ce63eb5) +++ dialin/utils/excel_ops.py (.../excel_ops.py) (revision a0a21a6b708f437875f8af1dc3e813e3342af449) @@ -156,9 +156,9 @@ active_sheet.freeze_panes = 'A2' # Enforce the cell protection whether it is a False or True - active_sheet.cell(row, column).protection = Protection(locked=protect_cell) + # NOTE: the cell coordinate way has been deprecated: active_sheet.cell(row, column).protection = Protection(locked=protect_cell) + active_sheet[cell_name].protection = Protection(locked=protect_cell) - def load_excel_report(path): """ This function returns an object of a currently existing excel workbook Index: tests/dg_nvm_scripts.py =================================================================== diff -u -ra7253ef8e885d542d22539cd1e4c608f7ce63eb5 -ra0a21a6b708f437875f8af1dc3e813e3342af449 --- tests/dg_nvm_scripts.py (.../dg_nvm_scripts.py) (revision a7253ef8e885d542d22539cd1e4c608f7ce63eb5) +++ tests/dg_nvm_scripts.py (.../dg_nvm_scripts.py) (revision a0a21a6b708f437875f8af1dc3e813e3342af449) @@ -14,6 +14,7 @@ # ############################################################################ from dialin import DG +from time import sleep def run_sw_configs_commands(): @@ -49,12 +50,13 @@ # It creates a folder called DG_NV_Records in the destination that is called # If no address is provided, the default location is one folder above the dialin folder wherever it is installed # in you computer. - #dg.calibration_record.cmd_get_dg_calibration_record_report() + # '/home/fw/projects/testCalRemove' + dg.calibration_record.cmd_get_dg_calibration_record_report() # Use cmd_set_dg_calibration_excel_to_fw() set the changes back to firmware # This function requires an address for the excel report. Use the absolute address of your excel report like the # example below - dg.calibration_record.cmd_set_dg_calibration_excel_to_fw('/home/fw/projects/DG_NV_Records/2024-03-02-DG-Record.xlsx') + #dg.calibration_record.cmd_set_dg_calibration_excel_to_fw('/home/fw/projects/DG_NV_Records/2025-02-05-DG-Record.xlsx') # For resetting the calibration record to benign values, use the function below #dg.calibration_record.cmd_reset_dg_calibration_record() @@ -110,6 +112,9 @@ dg = DG(log_level="DEBUG") + dg.cmd_dg_set_operation_mode(1) + sleep(0.5) + if dg.cmd_log_in_to_dg(): #run_sw_configs_commands() Index: tests/hd_nvm_scripts.py =================================================================== diff -u -ra7253ef8e885d542d22539cd1e4c608f7ce63eb5 -ra0a21a6b708f437875f8af1dc3e813e3342af449 --- tests/hd_nvm_scripts.py (.../hd_nvm_scripts.py) (revision a7253ef8e885d542d22539cd1e4c608f7ce63eb5) +++ tests/hd_nvm_scripts.py (.../hd_nvm_scripts.py) (revision a0a21a6b708f437875f8af1dc3e813e3342af449) @@ -50,12 +50,12 @@ # It creates a folder called HD_NV_Records in the destination that is called # If no address is provided, the default location is one folder above the dialin folder wherever it is installed # in your computer. - #hd.calibration_record.cmd_get_hd_calibration_record_report() + hd.calibration_record.cmd_get_hd_calibration_record_report() # Use cmd_set_hd_calibration_excel_to_fw() set the changes back to firmware # This function requires an address for the excel report. Use the absolute address of your excel report like the # example below - hd.calibration_record.cmd_set_hd_calibration_excel_to_fw('/home/fw/projects/HD_NV_Records/DVT-16-2024-07-15-HD-Record.xlsx') + #hd.calibration_record.cmd_set_hd_calibration_excel_to_fw('/home/fw/projects/HD_NV_Records/DVT-16-2024-07-15-HD-Record.xlsx') # For resetting the calibration record to benign values, use the function below #hd.calibration_record.cmd_reset_hd_calibration_record()