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
6a3e9819
Commit
6a3e9819
authored
Aug 12, 2022
by
Tim O'Donnell
Browse files
Fix numpy.int deprecation warning by changing numpy.int to bultin int in residue_constants.py
parent
5820c750
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
openfold/np/residue_constants.py
openfold/np/residue_constants.py
+3
-3
No files found.
openfold/np/residue_constants.py
View file @
6a3e9819
...
@@ -1121,10 +1121,10 @@ def _make_rigid_transformation_4x4(ex, ey, translation):
...
@@ -1121,10 +1121,10 @@ def _make_rigid_transformation_4x4(ex, ey, translation):
# and an array with (restype, atomtype, coord) for the atom positions
# and an array with (restype, atomtype, coord) for the atom positions
# and compute affine transformation matrices (4,4) from one rigid group to the
# and compute affine transformation matrices (4,4) from one rigid group to the
# previous group
# previous group
restype_atom37_to_rigid_group
=
np
.
zeros
([
21
,
37
],
dtype
=
np
.
int
)
restype_atom37_to_rigid_group
=
np
.
zeros
([
21
,
37
],
dtype
=
int
)
restype_atom37_mask
=
np
.
zeros
([
21
,
37
],
dtype
=
np
.
float32
)
restype_atom37_mask
=
np
.
zeros
([
21
,
37
],
dtype
=
np
.
float32
)
restype_atom37_rigid_group_positions
=
np
.
zeros
([
21
,
37
,
3
],
dtype
=
np
.
float32
)
restype_atom37_rigid_group_positions
=
np
.
zeros
([
21
,
37
,
3
],
dtype
=
np
.
float32
)
restype_atom14_to_rigid_group
=
np
.
zeros
([
21
,
14
],
dtype
=
np
.
int
)
restype_atom14_to_rigid_group
=
np
.
zeros
([
21
,
14
],
dtype
=
int
)
restype_atom14_mask
=
np
.
zeros
([
21
,
14
],
dtype
=
np
.
float32
)
restype_atom14_mask
=
np
.
zeros
([
21
,
14
],
dtype
=
np
.
float32
)
restype_atom14_rigid_group_positions
=
np
.
zeros
([
21
,
14
,
3
],
dtype
=
np
.
float32
)
restype_atom14_rigid_group_positions
=
np
.
zeros
([
21
,
14
,
3
],
dtype
=
np
.
float32
)
restype_rigid_group_default_frame
=
np
.
zeros
([
21
,
8
,
4
,
4
],
dtype
=
np
.
float32
)
restype_rigid_group_default_frame
=
np
.
zeros
([
21
,
8
,
4
,
4
],
dtype
=
np
.
float32
)
...
@@ -1280,7 +1280,7 @@ def make_atom14_dists_bounds(
...
@@ -1280,7 +1280,7 @@ def make_atom14_dists_bounds(
restype_atom14_ambiguous_atoms
=
np
.
zeros
((
21
,
14
),
dtype
=
np
.
float32
)
restype_atom14_ambiguous_atoms
=
np
.
zeros
((
21
,
14
),
dtype
=
np
.
float32
)
restype_atom14_ambiguous_atoms_swap_idx
=
np
.
tile
(
restype_atom14_ambiguous_atoms_swap_idx
=
np
.
tile
(
np
.
arange
(
14
,
dtype
=
np
.
int
),
(
21
,
1
)
np
.
arange
(
14
,
dtype
=
int
),
(
21
,
1
)
)
)
...
...
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