Skip to main content

National Renewable Energy Laboratory's System Advisor Model Python Wrapper

Project description

Documentation here: 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.
  • Minimum Python 3.5 for Windows 7 64-bit, MacOSX 10.6, or CentOS 5.

Version 2.1.1, ~ SAM 2020.2.29 r3, SSC Version 239

  • SAM Release fixes for revision 3
  • reopt size post bug
  • ssc_sim_from_dict bug fix
  • Version attribute: PySAM.__version__
  • URDBv7 in ResourceTools bug fix
  • ResourceFetcher for WindToolKit and National Solar Radiation Database downlaods
  • case-insensitive default configuration names
  • Generic Exception replaces PySAM.Error for easier MP debugging

Version 2.0.2, Jan 27, 2020 ~ SAM 2020.2.x, SSC Version 233

  • All new functions and models in latest SAM Release
  • New functions (Reopt_size_batter_post, value, from_existing)
  • Chaining cmods together
  • Get variable by a name without knowing group, list all variables
  • New Tools section (BatteryTools, ResourceTools)
  • Easy way to create wind or solar data
  • Battery sizing
  • All compute modules to PySAM
  • Major reorganization of variable groups
  • Bug fixes
  • fopen defaults
  • turbine powercurve
  • Documentation features
  • Downstream and upstream variable suggestions
  • Examples page

Version 1.2.dev3, August 21, 2019 ~ SAM 2018.11.11.3, SSC Version 211

  • Wind PRUF framework
  • Wind resource distribution
  • Physical Trough reorganization
  • Grid compute module
  • Marine hydrokinetic compute module
  • Supercritical CO2 compute modules
  • Geothermal output names
  • Documentation: Variable requirement
  • Stubs: Added AdjustmentmentFactors

Version 1.2.1, April 26, 2019 ~ SAM 2018.11.11.3, SSC Version 209

  • SSC using doubles
  • Tcs_moltensalt RADCOOL group
  • Stub files and .rst files for readthedocs
  • Documentation updates

Version 1.1, April 15, 2019 ~ SAM 2018.11.11.3, SSC Version 208

  • Group all modules under PySAM namespace
  • Defaults for technology and financial models according to SAM GUI configurations
  • Include PySSC with dictionary functions as subpackage
  • Remove AdjustmentFactors group from non-technology modules
  • Fix custom exception for use with multiprocessing package
  • Documentation updates

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NREL-PySAM-2.1.1.tar.gz (790.2 kB view hashes)

Uploaded Source

Built Distributions

NREL_PySAM-2.1.1-cp38-cp38-win_amd64.whl (20.3 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

NREL_PySAM-2.1.1-cp38-cp38-manylinux1_x86_64.whl (29.1 MB view hashes)

Uploaded CPython 3.8

NREL_PySAM-2.1.1-cp38-cp38-macosx_10_9_x86_64.whl (21.9 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

NREL_PySAM-2.1.1-cp37-cp37m-win_amd64.whl (20.3 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

NREL_PySAM-2.1.1-cp37-cp37m-manylinux1_x86_64.whl (28.9 MB view hashes)

Uploaded CPython 3.7m

NREL_PySAM-2.1.1-cp37-cp37m-macosx_10_7_x86_64.whl (22.0 MB view hashes)

Uploaded CPython 3.7m macOS 10.7+ x86-64

NREL_PySAM-2.1.1-cp36-cp36m-win_amd64.whl (20.3 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

NREL_PySAM-2.1.1-cp36-cp36m-manylinux1_x86_64.whl (28.9 MB view hashes)

Uploaded CPython 3.6m

NREL_PySAM-2.1.1-cp36-cp36m-macosx_10_7_x86_64.whl (22.0 MB view hashes)

Uploaded CPython 3.6m macOS 10.7+ x86-64

NREL_PySAM-2.1.1-cp35-cp35m-win_amd64.whl (20.7 MB view hashes)

Uploaded CPython 3.5m Windows x86-64

NREL_PySAM-2.1.1-cp35-cp35m-manylinux1_x86_64.whl (28.9 MB view hashes)

Uploaded CPython 3.5m

NREL_PySAM-2.1.1-cp35-cp35m-macosx_10_6_x86_64.whl (22.1 MB view hashes)

Uploaded CPython 3.5m macOS 10.6+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page