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 cc0c880 commit 4fa88a6Copy full SHA for 4fa88a6
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 row['total_capacity'] == (
+ if not round(row['total_capacity'], 3) == round(
181
row['number_of_turbines'] *
182
- row['wind_turbine'].nominal_power):
+ row['wind_turbine'].nominal_power, 3):
183
self.wind_turbine_fleet.loc[ix, 'total_capacity'] = \
184
row['number_of_turbines'] * \
185
row['wind_turbine'].nominal_power
0 commit comments