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
a317ad27
"...llm/tio/git@developer.sourcefind.cn:OpenDAS/dynamo.git" did not exist on "32a748e4030859dbb2a4dd9eaac389e2c84966b3"
Commit
a317ad27
authored
Mar 21, 2024
by
Jennifer
Browse files
superimposition fix from Aymen
parent
36cd9eb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
openfold/utils/superimposition.py
openfold/utils/superimposition.py
+4
-4
No files found.
openfold/utils/superimposition.py
View file @
a317ad27
...
@@ -35,10 +35,10 @@ def _superimpose_np(reference, coords):
...
@@ -35,10 +35,10 @@ def _superimpose_np(reference, coords):
def
_superimpose_single
(
reference
,
coords
):
def
_superimpose_single
(
reference
,
coords
):
reference_np
=
reference
.
detach
().
cpu
().
numpy
()
reference_np
=
reference
.
detach
().
to
(
torch
.
float
).
cpu
().
numpy
()
coords_np
=
coords
.
detach
().
cpu
().
numpy
()
coords_np
=
coords
.
detach
().
to
(
torch
.
float
).
cpu
().
numpy
()
superimposed
,
rmsd
=
_superimpose_np
(
reference_np
,
coords_np
)
superimposed
,
rmsd
=
_superimpose_np
(
reference_np
,
coords_np
)
return
coords
.
new_tensor
(
superimposed
),
coords
.
new_tensor
(
rmsd
)
return
coords
.
new_tensor
(
superimposed
),
coords
.
new_tensor
(
rmsd
)
def
superimpose
(
reference
,
coords
,
mask
):
def
superimpose
(
reference
,
coords
,
mask
):
...
...
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