bifacial_radiance icon indicating copy to clipboard operation
bifacial_radiance copied to clipboard

Installation error

Open Reto995 opened this issue 10 months ago • 5 comments

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.

Reto995 avatar Apr 11 '24 07:04 Reto995

Hey Reto,

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

Cheers, Alex

Funerus avatar Apr 13 '24 14:04 Funerus

Hey

nothing happens

image

or there is an error

image

Reto995 avatar Apr 22 '24 18:04 Reto995

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

Funerus avatar Apr 22 '24 18:04 Funerus

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?

Reto995 avatar Apr 22 '24 19:04 Reto995

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.

Funerus avatar Apr 23 '24 02:04 Funerus

Yes, thank you for the troubleshooting. I agree that the issue in the original script was with the line results = analysis.analysis(octfile, demo.basename, frontscan, backscan). In this case it should have been demo.name instead of demo.basename. I'm going to close this as solved, but please reply if we need to reopen this one.

cdeline avatar Aug 23 '24 04:08 cdeline