Skip to content

Commit f215ef3

Browse files
zredbmisi9170zhb
authored
fix: correct tilt_interp parameter type in compute_tilt_angles_for_fl… (#1192)
* fix: correct tilt_interp parameter type in compute_tilt_angles_for_floating_turbines - Change tilt_interp parameter type from dict[str, interp1d] to interp1d|None - This aligns with the function's actual usage where it expects a single interpolation function or None * Match type-hint formatting --------- Co-authored-by: misi9170 <39596329+misi9170@users.noreply.github.com> Co-authored-by: zhb <zhang.hongbing@meteodyn.com> Co-authored-by: misi9170 <michael.sinner@nlr.gov>
1 parent 6e4d5ae commit f215ef3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

floris/core/rotor_velocity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def compute_tilt_angles_for_floating_turbines_map(
152152

153153
def compute_tilt_angles_for_floating_turbines(
154154
tilt_angles: NDArrayFloat,
155-
tilt_interp: dict[str, interp1d],
155+
tilt_interp: interp1d | None,
156156
rotor_effective_velocities: NDArrayFloat,
157157
) -> NDArrayFloat:
158158
# Loop over each turbine type given to get tilt angles for all turbines

0 commit comments

Comments
 (0)