RWTH-EBC / richardsonpy

Python version of Richardson tool
GNU General Public License v3.0
17 stars 5 forks source link

Index error activity_statistics #30

Open ISHINJaR opened 1 year ago

ISHINJaR commented 1 year ago

There is a mistake in line 596 of appliances.py. Correct would be " int(6 * iActiveOccupants + sUseProfile)". A "6" is necessary to read in the correct element of activity_statistics.

There can be 0 to 5 active occupants and there are the activity profiles 0 to 5 (after "if sUseProfile < 6" in line 585). So activity_statistics has 36 elements for all combinations of active occupants and activity profiles smaller then 6.

https://github.com/RWTH-EBC/richardsonpy/blob/09493d1f46ccd67593f97138ff8027e2081ec9f4/richardsonpy/classes/appliance.py#L596