Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
1d657f55
Commit
1d657f55
authored
Nov 15, 2021
by
Gustaf Ahdritz
Browse files
Appease flake8 around importlib import
parent
94d890d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/compare_utils.py
tests/compare_utils.py
+2
-2
No files found.
tests/compare_utils.py
View file @
1d657f55
...
@@ -48,7 +48,7 @@ def import_alphafold():
...
@@ -48,7 +48,7 @@ def import_alphafold():
def
get_alphafold_config
():
def
get_alphafold_config
():
config
=
alphafold
.
model
.
config
.
model_config
(
"model_1_ptm"
)
config
=
alphafold
.
model
.
config
.
model_config
(
"model_1_ptm"
)
# noqa
config
.
model
.
global_config
.
deterministic
=
True
config
.
model
.
global_config
.
deterministic
=
True
return
config
return
config
...
@@ -102,7 +102,7 @@ def fetch_alphafold_module_weights(weight_path):
...
@@ -102,7 +102,7 @@ def fetch_alphafold_module_weights(weight_path):
_remove_key_prefix
(
params
,
prefix
)
_remove_key_prefix
(
params
,
prefix
)
try
:
try
:
params
=
alphafold
.
model
.
utils
.
flat_params_to_haiku
(
params
)
params
=
alphafold
.
model
.
utils
.
flat_params_to_haiku
(
params
)
# noqa
except
:
except
:
raise
ImportError
(
raise
ImportError
(
"Make sure to call import_alphafold before running this function"
"Make sure to call import_alphafold before running this function"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment