Skip to main content

High-level library for NREL's SAM Simulation Core (SSC)

Project description

samlib

Samlib is a high-level Python wrapper to the SAM SSC library from the SAM SDK.

Overview

Samlib uses cffi to build Pythonic library bindings to the SAM SSC library. It includes mypy stubs for static type analysis and code completion.

Example

import samlib
from samlib.modules import pvsamv1

wfd = samlib.Data()  # weather forecast data
wfd.lat = 38.743212
wfd.lon = -117.431238
...

data = pvsamv1.Data()
data.solar_resource_data = wfd
data.use_wf_albedo = 0
...

module = pvsamv1.Module()
module.exec(data)

# Use results in data

License

Samlib is provided under a BSD 3-Clause license.

The SAM SSC, distributed in binary form in samlib wheels, is also licensed under a BSD 3-clause license.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

samlib-0.3.1.240-cp310-cp310-win_amd64.whl (7.9 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

samlib-0.3.1.240-cp39-cp39-win_amd64.whl (7.9 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

samlib-0.3.1.240-cp38-cp38-win_amd64.whl (7.9 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

samlib-0.3.1.240-cp37-cp37m-win_amd64.whl (7.9 MB view hashes)

Uploaded CPython 3.7m Windows 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