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.

Python API site.addsitedir()??

  • cdavis
  • Topic Author
More
19 Mar 2019 13:53 #6709 by cdavis
Python API site.addsitedir()?? was created by cdavis

I'm trying to get the Python API running, but I'm not sure what I need to change in the code below. I'm using the latest version, though I'm not able to find the path shown below?


# Use site.addsitedir() to set the path to the SAM SDK API. Set path to the python directory.
site.addsitedir('/Applications/sam-sdk-2015-6-30-r3/languages/python/')


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

  • Paul Gilman
More
19 Mar 2019 18:06 #6710 by Paul Gilman
Replied by Paul Gilman on topic Python API site.addsitedir()??
Hello,

It looks like you are using an old version of the SAM SDK. I would recommend using the current version of SAM. Its code generator makes it easier to get started working with Python scripts.

Please see the SAM SDK page for more information:

sam.nrel.gov/sdk

Best regards,
Paul.

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

Moderators: Paul Gilman
Powered by Kunena Forum