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
FastFold
Commits
ab16ec95
Commit
ab16ec95
authored
May 23, 2025
by
fengzch-das
Browse files
fix: numpy1.24.3弃用np.int
parent
30142615
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fastfold/common/residue_constants.py
fastfold/common/residue_constants.py
+3
-3
No files found.
fastfold/common/residue_constants.py
View file @
ab16ec95
...
@@ -1127,10 +1127,10 @@ def _make_rigid_transformation_4x4(ex, ey, translation):
...
@@ -1127,10 +1127,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
)
...
@@ -1286,7 +1286,7 @@ def make_atom14_dists_bounds(
...
@@ -1286,7 +1286,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