We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fa88a6 commit ba03c61Copy full SHA for ba03c61
windpowerlib/wind_farm.py
@@ -177,9 +177,9 @@ def check_and_complete_wind_turbine_fleet(self):
177
'wind turbine is set.'.format(
178
turbine=row['wind_turbine']))
179
else:
180
- if not round(row['total_capacity'], 3) == round(
+ if not abs(row['total_capacity'] - (
181
row['number_of_turbines'] *
182
- row['wind_turbine'].nominal_power, 3):
+ row['wind_turbine'].nominal_power)) < 1:
183
self.wind_turbine_fleet.loc[ix, 'total_capacity'] = \
184
row['number_of_turbines'] * \
185
row['wind_turbine'].nominal_power
0 commit comments