SDK with Python

  • ankita.deshmukh@constellation.com
  • Topic Author
More
28 Jul 2017 20:03 #5589 by ankita.deshmukh@constellation.com
SDK with Python was created by ankita.deshmukh@constellation.com
Hi,

Does anyone know how to model a resdential PV system with Storage in SDK using Python API? If anyone has an example let me know.

Thanks

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

  • Angus King
More
31 Jul 2017 13:29 #5590 by Angus King
Replied by Angus King on topic SDK with Python
Anita

It is possible to create some sample code, either Python 2 or 3, via SAM itself. Something like this:
  1. Execute SAM
  2. Choose Photovoltaic (Detailed) and Residential (Distributed)
  3. Choose the Battery option
  4. Enable Battery
  5. Under the filename "pulldown" (untitled ?) choose 'Generate code ...'
  6. Choose your language and then the file location

This will give some Python code, and a couple of files. If this doesn't work for you I can attach the sample I just created.

Kind regards

Angus

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

  • Paul Gilman
More
31 Jul 2017 20:08 #5591 by Paul Gilman
Replied by Paul Gilman on topic SDK with Python
Here's a quick video showing the steps to generate and run Python script from a SAM case:


Your browser does not support the video tag.

Best regards,
Paul.

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

Moderators: Paul Gilman
Powered by Kunena Forum