Skip to content

Commit 93b05b0

Browse files
author
James Parkhurst
committed
Fixed typing issuet
1 parent 050edce commit 93b05b0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

profet/alphafold.py

Lines changed: 2 additions & 2 deletions
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 = str(FileType(filetype))
98+
filetype = FileType(filetype)
9999

100100
uniprot_id = uniprot_id.upper()
101101
af_id = "AF-" + uniprot_id + "-F1"
@@ -108,7 +108,7 @@ def make_url(
108108
+ "-model_v"
109109
+ str(version)
110110
+ "."
111-
+ filetype
111+
+ str(filetype)
112112
)
113113

114114
return url

profet/pdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ def make_url(
6666
6767
"""
6868

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

7474
def get_pdb(

0 commit comments

Comments
 (0)