Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'got an unexpected keyword argument 'hpc' in 'AgriPV - Coffee Plantation with Tree Modeling.py' #472

Open
yw567 opened this issue Aug 7, 2023 · 1 comment

Comments

@yw567
Copy link

yw567 commented Aug 7, 2023

Hi there,

Thanks for your effort in this toolkit.

Recently, when I tried to run the example code 'AgriPV - Coffee Plantation with Tree Modeling.py', I met a bug : TypeError: makeScene() got an unexpected keyword argument 'hpc' as shown below.
image

I ran it in Windows system, did I miss something? I noticed that in installment guidance, it indicated the associated softwares needed for Windows may be slightly out of date. Could it be a version issue?

I'll appreciate it if you can provide some suggestions or help.

Sincerely

@shirubana
Copy link
Member

I probably havent updated the journal for the latest bifacial_Radiance journal. The HPC input is now taken only when you create the RadianceObj and the AnalysisObj, and then it just remembers throughout. I.e.:

RadianceObj(name=’My_simulation’, path=folderforresults, hpc = False)

All the flag does is give a couple more seconds when searching for created files so it doesn’t fail because of the parallelized read/write. So having it as False is okay specially for windows runs; you could just remove “hpc” input to that function on the journal and it should run.

I will hopefully update the journal itself soon 😊 thanks for pointing that out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants