Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
PyWake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TOPFARM
PyWake
Commits
58e2e641
Commit
58e2e641
authored
1 year ago
by
Mads M. Pedersen
Browse files
Options
Downloads
Patches
Plain Diff
add WD_ilk to WT arguments and fix optional_input when None
parent
0478d62d
No related branches found
No related tags found
3 merge requests
!624
Multi mirror
,
!607
Cupy RANS NN Surrogate Inference Changes
,
!558
add WD_ilk to WT arguments and fix optional_input when None
Pipeline
#51476
passed
1 year ago
Stage: test
Stage: test_plugins
Stage: deploy
Changes
2
Pipelines
10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
py_wake/wind_farm_models/engineering_models.py
+1
-0
1 addition, 0 deletions
py_wake/wind_farm_models/engineering_models.py
py_wake/wind_turbines/wind_turbine_functions.py
+1
-1
1 addition, 1 deletion
py_wake/wind_turbines/wind_turbine_functions.py
with
2 additions
and
1 deletion
py_wake/wind_farm_models/engineering_models.py
+
1
−
0
View file @
58e2e641
...
...
@@ -752,6 +752,7 @@ class All2AllIterative(EngineeringWindFarmModel):
diff_lk
=
np
.
zeros
((
L
,
K
))
diff_lk_last
=
None
dw_iilk
,
hcw_iilk
,
dh_iilk
=
self
.
site
.
distance
(
wd_l
=
wd
,
WD_ilk
=
WD_ilk
)
kwargs
[
'
WD_ilk
'
]
=
WD_ilk
wt_kwargs
=
self
.
get_wt_kwargs
(
TI_eff_ilk
,
kwargs
)
ct_ilk
=
self
.
windTurbines
.
ct
(
ws
=
WS_ILK
,
**
wt_kwargs
)
...
...
This diff is collapsed.
Click to expand it.
py_wake/wind_turbines/wind_turbine_functions.py
+
1
−
1
View file @
58e2e641
...
...
@@ -153,7 +153,7 @@ class FunctionSurrogates(WindTurbineFunction, ABC):
if
input_keys
[
0
]
==
'
self
'
:
input_keys
=
input_keys
[
1
:]
defaults
=
inspect
.
getfullargspec
(
self
.
get_input
).
defaults
optional_inputs
=
input_keys
[
1
:
]
if
defaults
is
None
else
input_keys
[::
-
1
][:
len
(
defaults
)]
optional_inputs
=
[
]
if
defaults
is
None
else
input_keys
[::
-
1
][:
len
(
defaults
)]
if
output_keys
is
None
:
output_keys
=
[
fs
.
output_names
[
0
]
for
fs
in
self
.
function_surrogate_lst
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment