Skip to content
Snippets Groups Projects
Commit 8effa8af authored by Chad Hanna's avatar Chad Hanna
Browse files

inspiral.py: add iir bank string parser

parent 7e98f33e
No related branches found
No related tags found
No related merge requests found
......@@ -178,7 +178,7 @@ def parse_svdbank_string(bank_string):
"""
parses strings of form
H1:bank1.xml,H2:bank2.xml,L1:bank3.xml,H2:bank4.xml,...
H1:bank1.xml,H2:bank2.xml,L1:bank3.xml
into a dictionary of lists of bank files.
"""
......@@ -193,6 +193,23 @@ def parse_svdbank_string(bank_string):
return out
def parse_iirbank_string(bank_string):
"""
parses strings of form
H1:bank1.xml,H2:bank2.xml,L1:bank3.xml,H2:bank4.xml,...
into a dictionary of lists of bank files.
"""
out = {}
if bank_string is None:
return out
for b in bank_string.split(','):
ifo, bank = b.split(':')
out.setdefault(ifo, []).append(bank)
return out
def parse_bank_files(svd_banks, verbose, snr_threshold = None):
"""
given a dictionary of lists of svd template bank file names parse them
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment