Hi everyone, would anyone let me know why I am getting the “Attempted to divide by zero” error?
I am using the downlaoded script from gitbub (comfort_shade_benefit) to analysis shade benefit. All step retaimed the same as the original script. But I used my own shade geometry and study region, I also added context buildings.
The script only worked when I adjusted the grid size to be 1 or above. Once its below 1, it will fail. I want to understand why.
As a new user I cant upload files. But please see the screenshot for the script:
You should now be able to upload files. This is most likely happening because the grid size is causing a geometry to generate zero points for the analysis grid.
If you can upload your geometry file that recreates the issue, I should be able to push a fix so that you don’t get the exception.