Skip to content

Commit

Permalink
Update docstring (unimplemented feature)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobin-ford committed Sep 27, 2024
1 parent 0b1aa22 commit 4b754a0
Showing 1 changed file with 47 additions and 3 deletions.
50 changes: 47 additions & 3 deletions pvdeg/standards.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,6 @@ def vertical_POA(
lcoa_nom : float [cents/kWh]
LCOE Levelized cost of energy nominal
"""
return

import PySAM
import PySAM.Pvsamv1 as PV
Expand Down Expand Up @@ -783,7 +782,10 @@ def pysam(
meta: dict,
pv_model: str,
pv_model_default: str,
files: dict[str: str] = None,
# grid_default: str,
# cashloan_default: str,
# utilityrate_default: str,
config_files: dict[str: str] = None,
results: list[str] = None,
) -> dict:
"""
Expand All @@ -803,7 +805,7 @@ def pysam(
options: ``pvwatts8``, ``pysamv1``, etc.
pv_model_default: str
choose pysam config for pv model. [Pysam Modules](https://nrel-pysam.readthedocs.io/en/main/ssc-modules.html)
pysam config for pv model. [Pysam Modules](https://nrel-pysam.readthedocs.io/en/main/ssc-modules.html)
On the docs some modules have availabile defaults listed.
Expand Down Expand Up @@ -858,6 +860,40 @@ def pysam(
- "PhotovoltaicWindBatteryHybridHostDeveloper"
- "PhotovoltaicWindBatteryHybridSingleOwner"
grid_default: str
pysam default config for grid model. [Grid Defaults](https://nrel-pysam.readthedocs.io/en/main/modules/Grid.html)
cashloan_default: str
pysam default config for cashloan model. [Cashloan Defaults](https://nrel-pysam.readthedocs.io/en/main/modules/Cashloan.html)
- "FlatPlatePVCommercial"
- "FlatPlatePVResidential"
- "PVBatteryCommercial"
- "PVBatteryResidential"
- "PVWattsBatteryCommercial"
- "PVWattsBatteryResidential"
- "PVWattsCommercial"
- "PVWattsResidential"
utiltityrate_default: str
pysam default config for utilityrate5 model. [Utilityrate5 Defaults](https://nrel-pysam.readthedocs.io/en/main/modules/Utilityrate5.html())
config_files: dict
SAM configuration files. A dictionary containing a mapping to filepaths.
Keys must be `'pv', 'grid', 'utilityrate', 'cashloan'`. Each key should contain a value as a string representing the file path to a SAM config file.
```
files = {
'pv' : 'example/path/1/pv-file.json'
'grid' : 'example/path/1/grid-file.json'
'utilityrate' : 'example/path/1/utilityrate-file.json'
'cashloan' : 'example/path/1/cashloan-file.json'
}
```
results: list[str]
list of strings corresponding to pysam outputs to return.
Pysam models such as `Pvwatts8` and `Pvsamv1` return hundreds of results.
Expand All @@ -877,6 +913,9 @@ def pysam(
"""
import PySAM.Pvwattsv8 as pv8
import PySAM.Pvsamv1 as pv1
import PySAM.Grid as Grid
import PySAM.Utilityrate5 as UtilityRate
import PySAM.Cashloan as Cashloan
import json

weather_df = utilities.add_time_columns_tmy(weather_df=weather_df)
Expand Down Expand Up @@ -907,6 +946,11 @@ def pysam(

pysam_model.unassign('solar_resource_file') # unassign file

# grid = Grid.from_existing(pv_model)
# utility_rate = UtilityRate.from_existing(pv_model)
# cashloan = Cashloan.from_existing(grid, 'FlatPlatePVCommercial')


# Duplicate Columns in the dataframe seem to cause this issue
# Error (-4) converting nested tuple 0 into row in matrix.
pysam_model.SolarResource.solar_resource_data = solar_resource
Expand Down

0 comments on commit 4b754a0

Please sign in to comment.