Commit b85ffe10 authored by Augustin Zidek's avatar Augustin Zidek Committed by Copybara-Service
Browse files

Do not reuse the temporary output directory in run_alphafold_test.

PiperOrigin-RevId: 435373710
Change-Id: I52c46cdfaccf73a456dfad52a2e3a103791653f4
parent 0007c352
...@@ -59,14 +59,12 @@ class RunAlphafoldTest(parameterized.TestCase): ...@@ -59,14 +59,12 @@ class RunAlphafoldTest(parameterized.TestCase):
model_runner_mock.multimer_mode = False model_runner_mock.multimer_mode = False
amber_relaxer_mock.process.return_value = ('RELAXED', None, None) amber_relaxer_mock.process.return_value = ('RELAXED', None, None)
fasta_path = os.path.join(absltest.get_default_test_tmpdir(), out_dir = self.create_tempdir().full_path
'target.fasta') fasta_path = os.path.join(out_dir, 'target.fasta')
with open(fasta_path, 'wt') as f: with open(fasta_path, 'wt') as f:
f.write('>A\nAAAAAAAAAAAAA') f.write('>A\nAAAAAAAAAAAAA')
fasta_name = 'test' fasta_name = 'test'
out_dir = absltest.get_default_test_tmpdir()
run_alphafold.predict_structure( run_alphafold.predict_structure(
fasta_path=fasta_path, fasta_path=fasta_path,
fasta_name=fasta_name, fasta_name=fasta_name,
......
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