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
236c6865
Commit
236c6865
authored
Jul 19, 2022
by
Gustaf Ahdritz
Browse files
Address template edge case
parent
b9eede45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
openfold/data/data_pipeline.py
openfold/data/data_pipeline.py
+6
-3
No files found.
openfold/data/data_pipeline.py
View file @
236c6865
...
@@ -100,9 +100,12 @@ def unify_template_features(
...
@@ -100,9 +100,12 @@ def unify_template_features(
if
(
n_templates
!=
0
):
if
(
n_templates
!=
0
):
out_dicts
.
append
(
out_dict
)
out_dicts
.
append
(
out_dict
)
out_dict
=
{
if
(
len
(
out_dicts
)
>
0
):
k
:
np
.
concatenate
([
od
[
k
]
for
od
in
out_dicts
])
for
k
in
out_dicts
[
0
]
out_dict
=
{
}
k
:
np
.
concatenate
([
od
[
k
]
for
od
in
out_dicts
])
for
k
in
out_dicts
[
0
]
}
else
:
out_dict
=
empty_template_feats
(
sum
(
seq_lens
))
return
out_dict
return
out_dict
...
...
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