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
447670c0
Commit
447670c0
authored
Apr 23, 2023
by
yoel shoshan
Committed by
Jennifer Wei
Jan 08, 2024
Browse files
suporting newer numpy
parent
6a4b9f39
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
openfold/data/data_pipeline.py
openfold/data/data_pipeline.py
+3
-3
openfold/data/templates.py
openfold/data/templates.py
+2
-2
No files found.
openfold/data/data_pipeline.py
View file @
447670c0
...
...
@@ -124,12 +124,12 @@ def make_sequence_features(
)
features
[
"between_segment_residues"
]
=
np
.
zeros
((
num_res
,),
dtype
=
np
.
int32
)
features
[
"domain_name"
]
=
np
.
array
(
[
description
.
encode
(
"utf-8"
)],
dtype
=
np
.
object
_
[
description
.
encode
(
"utf-8"
)],
dtype
=
object
)
features
[
"residue_index"
]
=
np
.
array
(
range
(
num_res
),
dtype
=
np
.
int32
)
features
[
"seq_length"
]
=
np
.
array
([
num_res
]
*
num_res
,
dtype
=
np
.
int32
)
features
[
"sequence"
]
=
np
.
array
(
[
sequence
.
encode
(
"utf-8"
)],
dtype
=
np
.
object
_
[
sequence
.
encode
(
"utf-8"
)],
dtype
=
object
)
return
features
...
...
@@ -162,7 +162,7 @@ def make_mmcif_features(
)
mmcif_feats
[
"release_date"
]
=
np
.
array
(
[
mmcif_object
.
header
[
"release_date"
].
encode
(
"utf-8"
)],
dtype
=
np
.
object
_
[
mmcif_object
.
header
[
"release_date"
].
encode
(
"utf-8"
)],
dtype
=
object
)
mmcif_feats
[
"is_distillation"
]
=
np
.
array
(
0.
,
dtype
=
np
.
float32
)
...
...
openfold/data/templates.py
View file @
447670c0
...
...
@@ -85,8 +85,8 @@ TEMPLATE_FEATURES = {
"template_aatype"
:
np
.
int64
,
"template_all_atom_mask"
:
np
.
float32
,
"template_all_atom_positions"
:
np
.
float32
,
"template_domain_names"
:
np
.
object
,
"template_sequence"
:
np
.
object
,
"template_domain_names"
:
object
,
"template_sequence"
:
object
,
"template_sum_probs"
:
np
.
float32
,
}
...
...
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