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
7e969e48
Commit
7e969e48
authored
Jun 30, 2023
by
Geoffrey Yu
Browse files
change it back to unittest testunit
parent
1e268fd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
tests/test_permutation.py
tests/test_permutation.py
+3
-7
No files found.
tests/test_permutation.py
View file @
7e969e48
...
...
@@ -38,8 +38,8 @@ from openfold.utils.rigid_utils import (
Rigid
,
)
class
TestPermutation
:
def
__init__
(
self
):
class
TestPermutation
(
unittest
.
TestCase
)
:
def
setUp
(
self
):
"""
Firstly setup model configs and model as in
test_model.py
...
...
@@ -137,9 +137,5 @@ class TestPermutation:
with
torch
.
no_grad
():
out
=
model
(
batch
)
print
(
f
"finished foward on batch with batch_size dim"
)
permutated_labels
=
multimer_loss
(
out
,(
batch
,
example_label
))
multimer_loss
(
out
,(
batch
,
example_label
))
# print(f"permuated_labels is {type(permutated_labels)} and keys are:\n {permutated_labels.keys()}")
if
__name__
==
"__main__"
:
test
=
TestPermutation
()
test
.
test_dry_run
()
\ No newline at end of file
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