Commit 94d890d8 authored by Gustaf Ahdritz's avatar Gustaf Ahdritz
Browse files

Add warning to test utils script

parent 6e5c619c
...@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment