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
94d890d8
Commit
94d890d8
authored
Nov 15, 2021
by
Gustaf Ahdritz
Browse files
Add warning to test utils script
parent
6e5c619c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
tests/compare_utils.py
tests/compare_utils.py
+7
-1
No files found.
tests/compare_utils.py
View file @
94d890d8
...
@@ -100,5 +100,11 @@ def fetch_alphafold_module_weights(weight_path):
...
@@ -100,5 +100,11 @@ def fetch_alphafold_module_weights(weight_path):
module_name
=
spl
[
-
1
]
module_name
=
spl
[
-
1
]
prefix
=
"/"
.
join
(
spl
[:
-
1
])
+
"/"
prefix
=
"/"
.
join
(
spl
[:
-
1
])
+
"/"
_remove_key_prefix
(
params
,
prefix
)
_remove_key_prefix
(
params
,
prefix
)
try
:
params
=
alphafold
.
model
.
utils
.
flat_params_to_haiku
(
params
)
params
=
alphafold
.
model
.
utils
.
flat_params_to_haiku
(
params
)
except
:
raise
ImportError
(
"Make sure to call import_alphafold before running this function"
)
return
params
return
params
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