Skip to content

Commit

Permalink
Merge pull request #250 from leoisl/fix/198
Browse files Browse the repository at this point in the history
fix: filter out empty lines when getting the batches
  • Loading branch information
karel-brinda authored Dec 12, 2023
2 parents 0041b89 + 0a79d47 commit aa9124c
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 aa9124c

Please sign in to comment.