Enhance SAM with features tailored to your specific needs! We collaborate with companies, universities, and organizations to privately fund new capabilities or analyses. Your investment drives innovation while benefiting the broader energy community. Email us to learn more.

SAMsimPVWattsCommercialExample.py error

  • Dan
  • Topic Author
More
17 Nov 2021 16:59 #10273 by Dan
Tried running the SAMsimPVWattsCommercialExample.py script in the pySAM examples folder and got the following error. Is there a hard coded link in the pvwattsv7 code?

➜  sandbox /Users/dan/.pyenv/versions/3.9.7/envs/sandbox/bin/python /Users/dan/sandbox/Sam_commercial.pyTraceback (most recent call last):  File "/Users/dan/sandbox/Sam_commercial.py", line 59, in <module>    pv.execute()Exception: pvwattsv7 execution error.        exec fail(pvwattsv7): could not open file for reading: /Users/dguittet/SAM Downloaded Weather Files/weather.csv

Please Log in or Create an account to join the conversation.

  • Paul Gilman
More
17 Nov 2021 21:47 #10276 by Paul Gilman
Replied by Paul Gilman on topic SAMsimPVWattsCommercialExample.py error
Hi Dan,

Yes. You'll need to edit the 100kW_PVWatts.json file to change the value of solar_resource_file.

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

Moderators: Paul Gilman
Powered by Kunena Forum