Skip to content

Commit

Permalink
fix: filter out empty lines when getting the batches
Browse files Browse the repository at this point in the history
  • Loading branch information
leoisl committed Dec 12, 2023
1 parent 0041b89 commit 0a79d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_all_query_filenames():

def get_batches():
with open(config["batches"]) as fin:
return sorted([x.strip() for x in fin])
return list(sorted(filter(len, map(str.strip, fin))))


def get_filename_for_all_queries():
Expand Down

0 comments on commit 0a79d47

Please sign in to comment.