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
2dd481e1
Commit
2dd481e1
authored
Apr 29, 2024
by
Jennifer
Browse files
fix path error in scripts/utils.py and logging fix
parent
cfb4c19c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
openfold/utils/tensor_utils.py
openfold/utils/tensor_utils.py
+1
-2
scripts/utils.py
scripts/utils.py
+6
-6
No files found.
openfold/utils/tensor_utils.py
View file @
2dd481e1
...
@@ -114,8 +114,7 @@ def tree_map(fn, tree, leaf_type):
...
@@ -114,8 +114,7 @@ def tree_map(fn, tree, leaf_type):
elif
isinstance
(
tree
,
leaf_type
):
elif
isinstance
(
tree
,
leaf_type
):
return
fn
(
tree
)
return
fn
(
tree
)
else
:
else
:
print
(
type
(
tree
))
raise
ValueError
(
f
"Tree of type
{
type
(
tree
)
}
not supported"
)
raise
ValueError
(
"Not supported"
)
tensor_tree_map
=
partial
(
tree_map
,
leaf_type
=
torch
.
Tensor
)
tensor_tree_map
=
partial
(
tree_map
,
leaf_type
=
torch
.
Tensor
)
scripts/utils.py
View file @
2dd481e1
...
@@ -34,22 +34,22 @@ def add_data_args(parser: argparse.ArgumentParser):
...
@@ -34,22 +34,22 @@ def add_data_args(parser: argparse.ArgumentParser):
'--bfd_database_path'
,
type
=
str
,
default
=
None
,
'--bfd_database_path'
,
type
=
str
,
default
=
None
,
)
)
parser
.
add_argument
(
parser
.
add_argument
(
'--jackhmmer_binary_path'
,
type
=
Path
,
default
=
CONDA_ENV_BINARY_PATH
/
'jackhmmer'
,
'--jackhmmer_binary_path'
,
type
=
str
,
default
=
str
(
CONDA_ENV_BINARY_PATH
/
'jackhmmer'
)
,
)
)
parser
.
add_argument
(
parser
.
add_argument
(
'--hhblits_binary_path'
,
type
=
Path
,
default
=
CONDA_ENV_BINARY_PATH
/
'hhblits'
,
'--hhblits_binary_path'
,
type
=
str
,
default
=
str
(
CONDA_ENV_BINARY_PATH
/
'hhblits'
)
,
)
)
parser
.
add_argument
(
parser
.
add_argument
(
'--hhsearch_binary_path'
,
type
=
str
,
default
=
CONDA_ENV_BINARY_PATH
/
'hhsearch'
,
'--hhsearch_binary_path'
,
type
=
str
,
default
=
str
(
CONDA_ENV_BINARY_PATH
/
'hhsearch'
)
,
)
)
parser
.
add_argument
(
parser
.
add_argument
(
'--hmmsearch_binary_path'
,
type
=
str
,
default
=
CONDA_ENV_BINARY_PATH
/
'hmmsearch'
,
'--hmmsearch_binary_path'
,
type
=
str
,
default
=
str
(
CONDA_ENV_BINARY_PATH
/
'hmmsearch'
)
,
)
)
parser
.
add_argument
(
parser
.
add_argument
(
'--hmmbuild_binary_path'
,
type
=
str
,
default
=
CONDA_ENV_BINARY_PATH
/
'hmmbuild'
,
'--hmmbuild_binary_path'
,
type
=
str
,
default
=
str
(
CONDA_ENV_BINARY_PATH
/
'hmmbuild'
)
,
)
)
parser
.
add_argument
(
parser
.
add_argument
(
'--kalign_binary_path'
,
type
=
str
,
default
=
CONDA_ENV_BINARY_PATH
/
'kalign'
,
'--kalign_binary_path'
,
type
=
str
,
default
=
str
(
CONDA_ENV_BINARY_PATH
/
'kalign'
)
,
)
)
parser
.
add_argument
(
parser
.
add_argument
(
'--max_template_date'
,
type
=
str
,
'--max_template_date'
,
type
=
str
,
...
...
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