lf_qa.py debug information on the DUT information

1. The naming for the empty DUT strings changed.  The DUT is taken from
the kpi, this is a step closer to a fix of wanting the latest DUT information
from the Database yet not full proof.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-08-15 06:49:34 -06:00
parent 956a6ddb43
commit 57720fe1db
2 changed files with 11 additions and 1 deletions

View File

@@ -78,11 +78,20 @@ class csv_sqlite_dash():
def get_dut_info(self):
dut_info_df = pd.DataFrame()
#try:
print("DUT: {DUT} SW:{SW} HW:{HW} SN:{SN}"
.format(DUT=self.dut_model_num_list,SW=self.dut_sw_version_list,HW=self.dut_hw_version_list,SN=self.dut_serial_num_list))
dut_info_df['DUT'] = self.dut_model_num_list[0]
dut_info_df['SW version'] = self.dut_sw_version_list[0]
dut_info_df['HW version'] = self.dut_hw_version_list[0]
dut_info_df['Serial'] = self.dut_serial_num_list[0]
print("DUT: {df}".format(df=dut_info_df))
print("DUT: {DUT} SW:{SW} HW:{HW} SN:{SN}"
.format(DUT=self.dut_model_num_list,SW=self.dut_sw_version_list,HW=self.dut_hw_version_list,SN=self.dut_serial_num_list))
print("DUT df_na: {df}".format(df=dut_info_df))
dut_info_df = dut_info_df.dropna()
print("DUT df: {df}".format(df=dut_info_df))
#except:
# dut_info_df['DUT'] = 'NA'
# dut_info_df['SW version'] = 'NA'