Skip to content

Commit c725cdc

Browse files
author
James Parkhurst
committed
Fixed url issue
1 parent 93b05b0 commit c725cdc

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
@@ -108,7 +108,7 @@ def make_url(
108108
+ "-model_v"
109109
+ str(version)
110110
+ "."
111-
+ str(filetype)
111+
+ filetype.name
112112
)
113113

114114
return url

profet/pdb.py

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

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

7474
def get_pdb(

0 commit comments

Comments
 (0)