architecture-building-systems / CityEnergyAnalyst

The City Energy Analyst (CEA)
https://www.cityenergyanalyst.com/
MIT License
197 stars 66 forks source link

Radiation will not run if path has whitespaces and user has no write persmissions to root of disk drive #3641

Closed reyery closed 3 months ago

reyery commented 4 months ago

It is a known issue for DAYSIM (the model behind cea radiation script), that it will not run properly if it is located in a path that has a space in it. We have a workaround for this by temporarily copying the binaries to the root of the disk drive.

https://github.com/architecture-building-systems/CityEnergyAnalyst/blob/a470194183bbba788783ef8d688ca02587e75f31/cea/resources/radiation/daysim.py#L155-L158

However, this solution does not work if the user does not have write permissions to copy the binaries to the root of the drive.

image

The best solution would be to fix this bug on DAYSIM end (but it requires time to understand the code and rebuild the binaries), or provide a config parameter where to user selects an appropriate path that they have permissions to.