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
bcd78085
Commit
bcd78085
authored
Jan 03, 2022
by
Gustaf Ahdritz
Browse files
Add missing imports
parent
e3daf724
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
openfold/utils/rigid_utils.py
openfold/utils/rigid_utils.py
+3
-3
No files found.
openfold/utils/rigid_utils.py
View file @
bcd78085
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# limitations under the License.
# limitations under the License.
from
__future__
import
annotations
from
__future__
import
annotations
from
typing
import
Tuple
,
Any
,
Sequence
,
Callable
from
typing
import
Tuple
,
Any
,
Sequence
,
Callable
,
Optional
import
numpy
as
np
import
numpy
as
np
import
torch
import
torch
...
@@ -716,7 +716,7 @@ class Rotation:
...
@@ -716,7 +716,7 @@ class Rotation:
return
Rotation
(
rot_mats
=
rot_mats
,
quats
=
None
)
return
Rotation
(
rot_mats
=
rot_mats
,
quats
=
None
)
def
map_tensor_fn
(
self
,
def
map_tensor_fn
(
self
,
fn
:
Callable
[
t
ens
or
.
Tensor
,
t
ens
or
.
Tensor
]
fn
:
Callable
[
tor
ch
.
Tensor
,
tor
ch
.
Tensor
]
)
->
Rotation
:
)
->
Rotation
:
"""
"""
Apply a Tensor -> Tensor function to underlying rotation tensors,
Apply a Tensor -> Tensor function to underlying rotation tensors,
...
@@ -1074,7 +1074,7 @@ class Rigid:
...
@@ -1074,7 +1074,7 @@ class Rigid:
return
Rigid
(
rot_inv
,
-
1
*
trn_inv
)
return
Rigid
(
rot_inv
,
-
1
*
trn_inv
)
def
map_tensor_fn
(
self
,
def
map_tensor_fn
(
self
,
fn
:
Callable
[
t
ens
or
.
Tensor
,
t
ens
or
.
Tensor
]
fn
:
Callable
[
tor
ch
.
Tensor
,
tor
ch
.
Tensor
]
)
->
Rigid
:
)
->
Rigid
:
"""
"""
Apply a Tensor -> Tensor function to underlying translation and
Apply a Tensor -> Tensor function to underlying translation and
...
...
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