From e3a6dea4b3a25742e0335391278b79aa79f7bc7e Mon Sep 17 00:00:00 2001 From: Mingjie Li <44071821+mingjiecn@users.noreply.github.com> Date: Mon, 25 Nov 2024 15:14:22 -0600 Subject: [PATCH] allow https for remote onlist (#54) --- seqspec/seqspec_onlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seqspec/seqspec_onlist.py b/seqspec/seqspec_onlist.py index a29c63a..b021a5a 100644 --- a/seqspec/seqspec_onlist.py +++ b/seqspec/seqspec_onlist.py @@ -136,7 +136,7 @@ def run_onlist(spec_fn, modality, ids, idtype, fmt, o): onlist_path = os.path.join(base_path, onlist_fn) if os.path.exists(onlist_path): urltype = "local" - elif urltype == "http": + elif urltype in ["http", "https"]: # download the onlist to the base path and return the path onlist_elements = read_remote_list(onlists[0]) onlist_path = write_onlist(onlist_elements, save_path) @@ -147,7 +147,7 @@ def run_onlist(spec_fn, modality, ids, idtype, fmt, o): for o in onlists: if o.urltype == "local": lsts.append(read_local_list(o, base_path)) - elif o.urltype == "http": + elif o.urltype in ["http", "https"]: # base_path is ignored for remote onlists lsts.append(read_remote_list(o, base_path)) onlist_elements = join_onlists(lsts, fmt)