From 35ea771f86cb52d4f522d78ab0a3af84830d9bf1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mikkel=20Friis-M=C3=B8ller?= <mikf@dtu.dk>
Date: Mon, 22 Nov 2021 11:22:52 +0000
Subject: [PATCH] Upd

---
 edwin/wind_farm_network.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/edwin/wind_farm_network.py b/edwin/wind_farm_network.py
index 9016895..2ad44ab 100644
--- a/edwin/wind_farm_network.py
+++ b/edwin/wind_farm_network.py
@@ -44,8 +44,10 @@ class WindFarmNetwork():
         setattr(self.driver, 'wfn', self)
 
     def design(self, x=None, y=None, **kwargs):
-        x = x or self.initial_layout['x']
-        y = y or self.initial_layout['y']
+        if isinstance(x, type(None)):
+            x = self.initial_layout['x']
+        if isinstance(y, type(None)):
+            y = self.initial_layout['y']
         self.x = x
         self.y = y
         T, cost = self.driver.run(x, y)
-- 
GitLab