Skip to content

Commit

Permalink
Allow multiple input files for --flags
Browse files Browse the repository at this point in the history
  • Loading branch information
tikk3r committed May 13, 2024
1 parent ddde850 commit 676556b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions runners/create_ms_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ def __init__(

if ddf_solsdir is not None:
if os.path.exists(ddf_solsdir["path"]):
fpattern = os.path.join(ddf_solsdir["path"], 'L*')
ddf_sol_freqs = get_dico_freqs( ddf_solsdir["path"], solnames="killMS.DIS2_full.sols.npz" )
fpattern = os.path.join(ddf_solsdir["path"], "L*")
ddf_sol_freqs = get_dico_freqs(
ddf_solsdir["path"], solnames="killMS.DIS2_full.sols.npz"
)
tmplist = []
for dd in mslist:
if check_dd_freq(dd, ddf_sol_freqs):
Expand Down Expand Up @@ -1079,6 +1081,7 @@ def add_arguments_vlbi_phaseup_concat(parser):
)
parser.add_argument(
"--flags",
nargs="*",
type=cwl_file,
help="Flagging information in JSON format.",
)
Expand Down Expand Up @@ -1187,6 +1190,7 @@ def cwl_dir(entry: str) -> Union[str, None]:
f'{{"class": "Directory", "path":"{os.path.abspath(entry)}"}}'
)


def check_dd_freq(infile: str, freq_array: Union[list, np.ndarray]) -> bool:
"""Check frequency coverage overlap between a Measurment Set and a given array of frequencies.
Expand Down

0 comments on commit 676556b

Please sign in to comment.