Skip to content

Commit

Permalink
fix random seed for subsampling instruction so that it doesnt fail
Browse files Browse the repository at this point in the history
  • Loading branch information
LonnekeScheffer committed Apr 25, 2024
1 parent df535e4 commit ae3be16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/workflows/instructions/test_SubsamplingInstruction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import random
import shutil
from unittest import TestCase

Expand All @@ -11,6 +12,7 @@

class TestSubsamplingInstruction(TestCase):
def test_run(self):
random.seed(1)
path = PathBuilder.build(EnvironmentSettings.tmp_test_path / "subsampling/")
dataset = RandomDatasetGenerator.generate_receptor_dataset(200, labels={"epitope": {"A": 0.5, "B": 0.5}}, path=path,
chain_1_length_probabilities={3: 1}, chain_2_length_probabilities={4: 1})
Expand Down

0 comments on commit ae3be16

Please sign in to comment.