Skip to main content

Python bindings for SAM Simulation Core (SSC)

Project description

sscpy

PyPI version

Python bindings to SAM Simulation Core (SSC)

Installation

Requirements

Install from PyPI (recommended)

pip install sscpy

Installing from Github

pip install git+https://github.com/StationA/sscpy.git#egg=sscpy

Installing from source

git clone https://github.com/StationA/sscpy.git
cd sscpy
pip install .

Usage

Example running PVWatts (v7)

from ssc.api import PVWatts

pvwatts = PVWatts()
params = {
    'solar_resource_file': 'weather_data.csv',
    'system_capacity': 1.0,
    'losses': 14.0,
    'array_type': 0,
    'tilt': 20,
    'azimuth': 180,
    'adjust:constant': 0
}
results = pvwatts.run(**params)

for output in results['ac']:
    print(output)

Contributing

When contributing to this repository, please follow the steps below:

  1. Fork the repository
  2. Submit your patch in one commit, or a series of well-defined commits
  3. Submit your pull request and make sure you reference the issue you are addressing

Installing for development

pip install --editable .

Running tests

tox -e dev

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

sscpy-0.2.1.tar.gz (13.6 kB view hashes)

Uploaded Source

Built Distribution

sscpy-0.2.1-py2.py3-none-any.whl (13.2 kB view hashes)

Uploaded Python 2 Python 3

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