Skip to content

NREL/pysam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a17b3f2 · Apr 10, 2025
Feb 18, 2025
Apr 10, 2025
Feb 26, 2023
Apr 10, 2025
Apr 10, 2025
Apr 10, 2025
Apr 10, 2025
Apr 10, 2025
Apr 10, 2025
Apr 4, 2025
Jan 29, 2024
Apr 23, 2021
Nov 11, 2022
Feb 5, 2025
Feb 5, 2025
Mar 27, 2019
Apr 10, 2025
Dec 20, 2023
Feb 5, 2025
Feb 5, 2025
Feb 5, 2025
Jan 28, 2021
Feb 5, 2025
May 3, 2019
Apr 10, 2025

Repository files navigation

PySAM Package

https://nrel-pysam.readthedocs.io

  • 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.

Requirements

  1. Python 3.8 - 3.13, 64 bit
  2. Operating system:
    • MacOSX 10.7+
    • Most Linux
    • Windows 7, x64
  3. CMake 3.20+

Installing

  1. PyPi:

    pip install nrel-pysam
    
  2. Anaconda (Versions > 1.2.1, < 6.0.0 only):

    conda install -c nrel nrel-pysam
    

May not be compatible with different builds of the CPython reference interpreter, and not with alternative interpreters such as PyPy, IronPython or Jython

Usage Examples

Citing this package

PySAM . National Renewable Energy Laboratory. Golden, CO. Accessed . https://github.com/nrel/pysam