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