Python bindings for SAM Simulation Core (SSC)
Project description
sscpy
Python bindings to SAM Simulation Core (SSC)
Installation
Requirements
- SAM Simulation Core (SSC) native libraries
- Python 3+
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:
- Fork the repository
- Submit your patch in one commit, or a series of well-defined commits
- 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
Release history Release notifications | RSS feed
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 details)
Built Distribution
sscpy-0.2.1-py2.py3-none-any.whl
(13.2 kB
view details)
File details
Details for the file sscpy-0.2.1.tar.gz
.
File metadata
- Download URL: sscpy-0.2.1.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5607f50aaa0932559e64f2a5ada99e6eae4cdd9d97dfaeaee627e6ce59bf0a4 |
|
MD5 | fa96969892cec92f14fd719178a5231e |
|
BLAKE2b-256 | 198776474067fe9f7dd2c69567705a7b74138523f0b38e5693ff3a10ba14984f |
File details
Details for the file sscpy-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: sscpy-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6855a15ad6d76a44cef2612663b535565f8650f156e8d35c1c3658d68355cb79 |
|
MD5 | d99a283223f962959c473a222e85aa71 |
|
BLAKE2b-256 | d558321b004a28b56c8731abe1d24131381fb29043db284bcdade9750540cf9f |