Changed heat_building.py to include checks for non-residential shlp_type
- Added a ValueError to catch unwanted error downstream
Now the non residential buildings will throw a ValueError to avoid non supported integers in the database located in src/demandlib/bdew/bdew_data. This made the function heat_building.get_sigmoid_parameters return an empty list if self.shlp_type was not 0 for non-commercial buildings.
Updated the documentation of the class HeatBuilding to reflect the needed input data too.
Added a few more checks to the heat_building.get_sigmoid_parameters function and added .iloc[0] to avoid warnings.
Added checks and slightly improved functions in src/demandlib/bdew/heat_building.py documentation and updated AUTHOR and CONTRIB files
Why did you close this?
Why did you close this?
Hi again, sorry, it was not intentional. Thanks for reopening, I checked the code and it is working.
any update on this? :)
Hi, I added the small simplifications as suggested by @p-snft . All clear from my side .
Hi @maurerle I added a new commit with your improvements.