Commit 047801fb authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE

fix row limit

parent 04f6b44a
Pipeline #24123 passed with stage
in 25 seconds
......@@ -28,9 +28,9 @@ def fetch_attribute(args):
print(row)
traceback.print_exc()
raise e
cpt -= 1
if cpt == 0:
break
cpt -= 1
values = {}
not_counted_values = {
"MISSING",
......
......@@ -41,9 +41,6 @@ if __name__ == '__main__':
csv_writer.writerow(output_header)
if args.verbose:
print(output_header)
cpt = -1
if args.limit > 0:
cpt = args.limit
for strain in tqdm(strains):
results = [""] * len(output_header)
# strain = StrainWrapped(row[strain_pos], row[bio_sample_pos], row[assembly_pos])
......@@ -65,6 +62,3 @@ if __name__ == '__main__':
if args.verbose:
print(results)
csv_writer.writerow(results)
if cpt == 0:
break
cpt -= 1
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