wind-python / windpowerlib

The windpowerlib is a library to model the output of wind turbines and farms.
https://oemof.org/
MIT License
332 stars 105 forks source link

Round values in total_capacity check #67

Closed SabineHaas closed 5 years ago

SabineHaas commented 5 years ago

WindpowerlibUserWarning were raised due to differences in total_capacity in 4th or 5th decimal place. Rounding could even be done up to 1st or 2nd decimal place; unit of total_capacity is W.

uvchik commented 5 years ago

I do not know if this is relevant, but it is saver to check the difference of both values and to define a maximum deviation. e.g. a - b < 5 assuming that a difference of 5W is still meant to be the same.

SabineHaas commented 5 years ago

Good point - thank you @uvchik ! I adapted it and took 1 W as limit.