Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def makeKeyArraysFromMaps(self,map1, map2, contact):
idx1 = contact.idx1
idx2 = contact.idx2
counter = 0
keys1 = []
for val in map1:
if val == 1:
if counter == AccumulationMapIndex.index:
keys1.append(idx1)
elif counter == AccumulationMapIndex.atype:
keys1.append(self.type_array[idx1])
elif counter == AccumulationMapIndex.name:
keys1.append(self.name_array[idx1])
elif counter == AccumulationMapIndex.resid:
keys1.append(self.resid_array[idx1])
elif counter == AccumulationMapIndex.resname:
keys1.append(self.resname_array[idx1])
elif counter == AccumulationMapIndex.segid:
keys1.append(self.segids[idx1])
else:
keys1.append("none")
counter += 1
counter = 0
keys2 = []