"...configs/git@developer.sourcefind.cn:OpenDAS/dcnv3.git" did not exist on "4bbef5094fb2065658e66b40f5d387850b4262ee"
Commit ab659c39 authored by Geoffrey Yu's avatar Geoffrey Yu
Browse files

update test codes

parent 4a66504c
......@@ -45,7 +45,7 @@ class TestPermutation(unittest.TestCase):
def test_dry_run(self):
n_seq = consts.n_seq
n_templ = consts.n_templ
n_res = consts.n_res +13
n_res = consts.n_res +9
n_extra_seq = consts.n_extra
c = model_config(consts.model, train=True)
......@@ -83,12 +83,12 @@ class TestPermutation(unittest.TestCase):
# Modify asym_id, entity_id and sym_id so that it encodes
# 2 chains
# #
asym_id = [1]*9+[2]*13+[3]*13
asym_id = [1]*9+[2]*9+[3]*13
batch["asym_id"] = torch.tensor(asym_id,dtype=torch.float64)
# batch["entity_id"] = torch.randint(0, 1, size=(n_res,))
batch['entity_id'] = torch.tensor([1]*9+[2]*26,dtype=torch.float64)
batch['entity_id'] = torch.tensor([1]*18+[2]*13,dtype=torch.float64)
batch["sym_id"] = torch.tensor(asym_id,dtype=torch.float64)
batch["num_sym"] = torch.tensor([1]*9+[2]*26,dtype=torch.int64) # currently there are just 2 chains
batch["num_sym"] = torch.tensor([1]*18+[2]*13,dtype=torch.int64) # currently there are just 2 chains
batch["extra_deletion_matrix"] = torch.randint(0, 2, size=(n_extra_seq, n_res))
add_recycling_dims = lambda t: (
t.unsqueeze(-1).expand(*t.shape, c.data.common.max_recycling_iters)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment