Skip to content

Commit

Permalink
When metadata_url is provided, use it
Browse files Browse the repository at this point in the history
  • Loading branch information
elray1 authored Nov 25, 2024
1 parent 8c1bf87 commit 03dee17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cladetime/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_metadata(
# get sequence metadata from a URL
file_suffix = Path(urlparse(metadata_url).path).suffix
if file_suffix in [".tsv", ".zst"]:
metadata = pl.scan_csv(metadata_path, separator="\t", n_rows=num_rows)
metadata = pl.scan_csv(metadata_url, separator="\t", n_rows=num_rows)
elif file_suffix == ".xz":
# pytyon's lzma module doesn't support opening via HTTP, so use requests
# to download the file in chunks and then decompress it
Expand Down

0 comments on commit 03dee17

Please sign in to comment.