NREL / bifacial_radiance

Toolkit for working with RADIANCE for the ray-trace modeling of Bifacial Photovoltaics
https://bifacial-radiance.readthedocs.io
BSD 3-Clause "New" or "Revised" License
83 stars 46 forks source link

Installation error #508

Open Reto995 opened 2 months ago

Reto995 commented 2 months ago

Hello everyone

I have installed bifacial radiance according to the installation video on youtube. When completing the installation and running the file main.py, the explorer appears in the video where a folder must be selected for saving. This does not appear for me. Accordingly, the entire process is not carried out for me. I didn't think too much about it because it's only for testing.

image

But if I want to import something from bifacial_radiance later, as in a tutorial, a type error always appears "TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' " does this have anything to do with each other and how can I fix this error?

image

Thank you very much for your help.

Funerus commented 2 months ago

Hey Reto,

Could you add print(demo.basename) before calling the .analysis method and share the output?

Cheers, Alex

Reto995 commented 2 months ago

Hey

nothing happens

image

or there is an error

image

Funerus commented 2 months ago

Basically, the variable demo has the class RadianceObj stored in it. "basename" is not a recognizable attribute of this class. Instead try using demo.name

Reto995 commented 2 months ago

it's the same image

image

maybe it is also because it is now the file main.py and no longer bifacial_radiance.py. could this not have become obsolete with an update?

Funerus commented 2 months ago

Weird!

demo.name should print out just fine. In the bottom screenshot I see that you are trying to access demo.name within the source code. This unnecessarily complicates things. You should try to access demo.name in the first script that you shared.