Skip to content

Commit 050edce

Browse files
author
James Parkhurst
committed
Cast to string
1 parent f677561 commit 050edce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

profet/alphafold.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def make_url(
9595
The URL of the file to download
9696
9797
"""
98-
filetype = FileType(filetype)
98+
filetype = str(FileType(filetype))
9999

100100
uniprot_id = uniprot_id.upper()
101101
af_id = "AF-" + uniprot_id + "-F1"

profet/pdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def make_url(
6666
6767
"""
6868

69-
filetype = FileType(filetype)
69+
filetype = str(FileType(filetype))
7070
uniprot_id = uniprot_id.upper()
7171
url = f"https://files.rcsb.org/download/{uniprot_id}.{filetype}"
7272
return url

0 commit comments

Comments
 (0)