Skip to content
Snippets Groups Projects
Commit 35ea771f authored by Mikkel Friis-Møller's avatar Mikkel Friis-Møller
Browse files

Upd

parent 54fb0bcb
No related branches found
No related tags found
1 merge request!6Upd
Pipeline #27278 failed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment