Skip to content

Commit

Permalink
diffdock json works (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
thetechnocrat-dev authored Jan 28, 2023
1 parent 7515684 commit d95ccda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
import unittest

from client import generate_diffdock_instructions
from ganglia.client import generate_diffdock_instructions


class TestClient(unittest.TestCase):
Expand All @@ -19,7 +19,8 @@ def test_format_args(self):
'&& HOME=esm/model_weights python esm/scripts/extract.py esm2_t33_650M_UR50D '
'outputs/prepared_for_esm.fasta outputs/esm2_output --repr_layers 33 --include per_tok && '
'python -m inference --protein_path inputs/test.pdb --ligand inputs/test.sdf --out_dir outputs '
'--inference_steps 20 --samples_per_complex 40 --batch_size 10 --actual_steps 18 --no_final_step_noise"'
'--inference_steps 20 --samples_per_complex 40 --batch_size 10 --actual_steps 18 '
'--esm_embeddings_path outputs/esm2_output --no_final_step_noise"'
),
}
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_build_docker_cmd(self):
),
}
expected_output = (
"docker run -v /home/ubuntu/inputs:/inputs -v /home/ubuntu/outputs:/outputs "
"docker run -v /home/ubuntu/inputs:/root/inputs -v /home/ubuntu/outputs:/root/outputs "
"--gpus all -p 5000 compbio:latest python design_drug.py"
)
self.assertEqual(expected_output, build_docker_cmd(instructions))
Expand Down

0 comments on commit d95ccda

Please sign in to comment.