Python bindings to SAM Simulation Core (SSC)
- SAM Simulation Core (SSC) native libraries
- Python 3+
pip install sscpy
pip install git+https://github.com/StationA/sscpy.git#egg=sscpy
git clone https://github.com/StationA/sscpy.git
cd sscpy
pip install .
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)
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
pip install --editable .
tox -e dev