Commit 78e5195e authored by Peter Jansweijer's avatar Peter Jansweijer

Repaired measurement file interpretation for multiple link restart files

parent be20a3cd
......@@ -111,7 +111,7 @@ def file_to_dict(filename):
existing_crtt_list = []
try:
existing_temp_list = crtt_data[float(line_lst[1])][1]
existing_temp_list = crtt_data[float(line_lst[1])][2]
except:
existing_temp_list = []
......@@ -126,7 +126,7 @@ def file_to_dict(filename):
lst_meas.append(existing_temp_list) # append the list of all temperature measurments
lst_meas.append(int(line_lst[0])) # append sfp module channel number
crtt_data.update({float(line_lst[1]): lst_meas}) # itu_channel: [wavelength, [list_of_crtt], SFP ch_numb]
crtt_data.update({float(line_lst[1]): lst_meas}) # itu_channel: [wavelength, [list_of_crtt], [list_of_temp], SFP ch_numb]
data_file.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment