From 919c1d0e1d789f92a13bc21fdf88c59963059c4e Mon Sep 17 00:00:00 2001 From: zhb Date: Wed, 13 May 2026 11:12:56 +0800 Subject: [PATCH 1/2] 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 --- floris/core/rotor_velocity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/floris/core/rotor_velocity.py b/floris/core/rotor_velocity.py index 2f93c80a52..e78f6b7ddb 100644 --- a/floris/core/rotor_velocity.py +++ b/floris/core/rotor_velocity.py @@ -152,7 +152,7 @@ def compute_tilt_angles_for_floating_turbines_map( def compute_tilt_angles_for_floating_turbines( tilt_angles: NDArrayFloat, - tilt_interp: dict[str, interp1d], + tilt_interp: interp1d|None, rotor_effective_velocities: NDArrayFloat, ) -> NDArrayFloat: # Loop over each turbine type given to get tilt angles for all turbines From da9020bbfa559c2a03c10ae98e3d250e3aed7ac8 Mon Sep 17 00:00:00 2001 From: misi9170 Date: Wed, 13 May 2026 09:01:52 -0600 Subject: [PATCH 2/2] Match type-hint formatting --- floris/core/rotor_velocity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/floris/core/rotor_velocity.py b/floris/core/rotor_velocity.py index e78f6b7ddb..9d62664a95 100644 --- a/floris/core/rotor_velocity.py +++ b/floris/core/rotor_velocity.py @@ -152,7 +152,7 @@ def compute_tilt_angles_for_floating_turbines_map( def compute_tilt_angles_for_floating_turbines( tilt_angles: NDArrayFloat, - tilt_interp: interp1d|None, + tilt_interp: interp1d | None, rotor_effective_velocities: NDArrayFloat, ) -> NDArrayFloat: # Loop over each turbine type given to get tilt angles for all turbines