Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Alphafold3
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RC Data Science
community-containers
Alphafold3
Commits
e2afc41e
Commit
e2afc41e
authored
7 months ago
by
Augustin Zidek
Browse files
Options
Downloads
Patches
Plain Diff
Make fetch_databases compatible with Python 3.6
PiperOrigin-RevId: 695389383
parent
7393d8b0
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Cloned AlphaFold 3 repo into this one
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fetch_databases.py
+3
-3
3 additions, 3 deletions
fetch_databases.py
with
3 additions
and
3 deletions
fetch_databases.py
+
3
−
3
View file @
e2afc41e
...
@@ -15,7 +15,6 @@ them. Make sure both are installed on your system before running this script.
...
@@ -15,7 +15,6 @@ them. Make sure both are installed on your system before running this script.
"""
"""
import
argparse
import
argparse
from
collections.abc
import
Sequence
import
concurrent.futures
import
concurrent.futures
import
functools
import
functools
import
os
import
os
...
@@ -63,7 +62,8 @@ def download_and_decompress(
...
@@ -63,7 +62,8 @@ def download_and_decompress(
check
=
True
,
check
=
True
,
stdout
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
text
=
True
,
# Same as text=True in Python 3.7+, used for backwards compatibility.
universal_newlines
=
True
,
)
)
print
(
print
(
f
'
FINISHED downloading
{
filename
}
from
{
bucket_path
}
to
'
f
'
FINISHED downloading
{
filename
}
from
{
bucket_path
}
to
'
...
@@ -81,7 +81,7 @@ def download_and_decompress(
...
@@ -81,7 +81,7 @@ def download_and_decompress(
print
(
f
'
FINISHED decompressing of
{
filename
}
'
)
print
(
f
'
FINISHED decompressing of
{
filename
}
'
)
def
main
(
argv
:
Sequence
[
str
]
=
(
''
,))
->
None
:
def
main
(
argv
=
(
''
,))
->
None
:
"""
Main function.
"""
"""
Main function.
"""
parser
=
argparse
.
ArgumentParser
(
description
=
'
Downloads AlphaFold databases.
'
)
parser
=
argparse
.
ArgumentParser
(
description
=
'
Downloads AlphaFold databases.
'
)
parser
.
add_argument
(
parser
.
add_argument
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment