Hi,
I am facing the following bug problem while I am running light simulation using python.
I have a room that is located on x=60.6 and y=220.1 and z=0. The room has a width of 2 and a depth of 9.7. The height of ceiling is 10. so this translates into:
** 'HBSurface height [{}].'.format(srf_height + sill_height, height)**
**AssertionError: Opening height plus sill height [4.0] should be smaller than HBSurface height [3].**
It looks like the height of the room (even though was defined as 9.7) is being considered same as width (2 width + 2 still height = 4) (See the error), which leads to an error saying that the height of the window is greater than the available height… Can anyone help me know to fix this bug? Why the height of the room is not being considered correctly?
If the window wall is ‘left’, it actually places the window not to the left side. It also confuses height and width. We knew this after we visualized the results.
To save time, found out how to fix the first bug,
if you go to the code for Honeybee test room class
Line 80 has @property
def height(self):
“”“Room height.”""
return self._width
This should be changed into @property
def height(self):
“”“Room height.”""
return self._height
Could we possibly add these to GitHub as issues @fhalawa1 ? Would be good to keep track of these bugs in one place. Also means others could pick them up (for hacktiberfest say).
Also, if you found the solution to this bug, would you mind making a pull request to the repository with your fix? Like that we can keep records of the heroes of ladybug tools the code itself
@AntoineDao, Sorry I fixed this one as I felt bad for not getting back to @fhalawa1 for a very long time I agree this could have been a good first contribution.
Also your did its job and tagged the PR successfully to honeybee and core!