diff --git a/operators/defaults/geno_pheno.py b/operators/defaults/geno_pheno.py index 9f9d2345..bfa774f9 100644 --- a/operators/defaults/geno_pheno.py +++ b/operators/defaults/geno_pheno.py @@ -163,7 +163,10 @@ def random_spring_geno(): return np.random.randint(0, 2, n_springs) def random_body_geno(): - return np.random.randint(0, 2, row * col) + bg = np.random.randint(0, 2, row * col) + bg = fill_holes(bg) + bg = body_largest_cc(bg) + return bg def sample_geno(): return random_body_geno(), random_spring_geno()