Commit 1533e448 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

update pywake aep gradient function name

parent 12b269e1
Pipeline #31282 failed with stage
in 14 minutes and 50 seconds
......@@ -67,7 +67,10 @@ class PyWakeAEPCostModelComponent(AEPCostModelComponent):
wd=wd, ws=ws)
if grad_method:
dAEPdxy = self.windFarmModel.dAEPdxy(grad_method)
dAEPdxy = self.windFarmModel.aep_gradients(gradient_method=grad_method, wrt_arg='xy')
except Exception: # for backward compatibility
dAEPdxy = self.windFarmModel.dAEPdxy(grad_method)
def daep(**kwargs):
return dAEPdxy(x=kwargs[topfarm.x_key],
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment