Hi all,
Here is a part of my code:
#-- if the ports are mapped properly
if(map_dict1[int(MIO_outports1[i])] == int(Exp_map_inport[i]) ):
flag = 1
elif(map_dict2[int(MIO_outports1[i])] == int(Exp_map_inport[i])):
flag = 1
else:
flag = 0
But I am not able to navigate to the 'elif' part. I am getting :
if(map_dict1[int(MIO_outports1[i])] == int(Exp_map_inport[i]) ):
KeyError: 596
but my key '596' is present in 'map_dict2'. Why am I not able to go to the elif part?? where am i going wrong??