From b0feb71840d195873c8eb3064e8d1ed6f33bfff9 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Mon, 9 Dec 2019 11:40:28 +0100 Subject: [PATCH] fix: missing domain width parameter for neigh in landscape example --- snp_landscapes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snp_landscapes.py b/snp_landscapes.py index 5339911..22a8f1e 100644 --- a/snp_landscapes.py +++ b/snp_landscapes.py @@ -42,7 +42,9 @@ if __name__ == "__main__": dim = 2, # Two sensors moving along y axis. scale = w), make.neig(num.neighb_square, - scale = 0.1 * w), + scale = 0.1 * w, + domain_width = w + ), iters ) sensors = [ (int(x0), int(round(sol[0]))), (int(x1), int(round(sol[1]))) ]