The SAM web site will be upgrading Monday, May 23 from 4:00-5:00pm (Denver/mountain time). 

After doing a major change to our infrastructure, we have found a minor issue that we have corrected but will need to reboot the web site for it to take affect.

To make it as convenient as possible, we have scheduled it for Monday, May 23rd at 4:00pm (mountain). The process takes 15-20 minutes, but the site will only be unavailable for a short time. However, your session information will be lost (eg if you're writing a post, what you have written could be lost). 

PySAM is a Python package that you can use in your Python code to make calls to the SAM Simulation Core (SSC) compute modules. It provides access for tools for accessing SAM default values and input variables so you can create code directly in Python without having to run SAM's code generator.

  • Provides a wrapper around the SAM library that groups together the C API functions by technology or financial model into modules.
  • Includes error-checking, explicit input and output definition, and conversion between Python data types.
  • PySAM modules are compatible with PySSC, which is included as a subpackage. PySSC is the original wrapper used by SAM's code generator.
  • Automatically assign default values to input parameters from SAM's default value database.
  • Built-in documentation of models and parameters.
  • Minimum Python 3.5 for Windows 7 64-bit, MacOSX 10.6, or CentOS 5.

For more information:

PySAM Workshop 2020

Supporting materials:

PySAM Webinar 2019

This overview presented on August 2, 2019 demonstrates how to use PySAM to build a renewable energy system model in Python using PySAM.

Note. The examples in this video use PySAM 1.2 with pvwattsv5. The example script provided here will not work with newer versions of PySAM with pvwattsv7. For more up-to-date examples, see the PySAM documentation.

Supporting Materials