Open MaGering opened 3 years ago
To simplify discussion for those who cannot run the code right away: What are the numbers?
If you pass annual_heat_demand=25000
and shlp_type='EFH'
, then you'll get sum(demand["efh"]) = 25001.458160603575
I think, this inaccuracy is quite expected when using floating point numbers. If it's really necessary, it might be mitigated but not avoided.
I found that the results in this area in the code are pretty sensitive to code changes. Maybe, it is possible to reduce the inaccuracy.
If you check the result, which is returned by bdew.HeatBuilding(), you'll find that its sum differs slightly from your input in annual_heat_demand.
To reproduce this, you can add these two lines to
heat_demand_example.py
here after calling bdew.HeatBuilding() for a single family housing ('efh'):