https://github.com/stationa/sscpy
Python bindings to SAM Simulation Core (SSC)
https://github.com/stationa/sscpy
energy simulation-modeling
Last synced: 9 months ago
JSON representation
Python bindings to SAM Simulation Core (SSC)
- Host: GitHub
- URL: https://github.com/stationa/sscpy
- Owner: StationA
- License: mit
- Created: 2017-10-11T20:54:12.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2021-11-08T06:05:53.000Z (over 4 years ago)
- Last Synced: 2025-04-09T20:18:15.269Z (about 1 year ago)
- Topics: energy, simulation-modeling
- Language: C
- Size: 620 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# sscpy
[](https://badge.fury.io/py/sscpy)
Python bindings to SAM Simulation Core (SSC)
## Installation
### Requirements
- [SAM Simulation Core (SSC)](https://github.com/NREL/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)
```python
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
1. Submit your patch in one commit, or a series of well-defined commits
1. 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
```