Skip to content

Commit

Permalink
Update bactopia-to-md.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetit3 authored Sep 22, 2024
1 parent 859855f commit 7c520e5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/bactopia-to-md.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ def read_nextflow_config(nf_config):
""" """
config = {}
with open(nf_config, 'rt') as nf_fh:
for line in nf_fh:
k,v = line.rstrip().split(' = ')
config[k] = nf_to_list(v) if v.startswith('[') else v
if "=" in line:
for line in nf_fh:
k,v = line.rstrip().split(' = ')
config[k] = nf_to_list(v) if v.startswith('[') else v
return config

def nf_to_list(param):
Expand Down

0 comments on commit 7c520e5

Please sign in to comment.