-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* files for pysam 2.2.4 * update build_manylinux.sh * update tests and conda build * update SAM_api files * closes #89 certifi certificates in fetchresource * fixes #94 * start v 2.3.0 * fix #69 * changes from 2021.12.2 release * add VersionChanges.rst * add version_differ.py * add more release info * update version_differ.py doc str * correct version_differ.py with PySSC * add python 3.10 * fix getting env variables during build and remove pandas dependency * fix test_ResouceTools.py * switch to manylinux2010 for Python 3.10 support * update pysam files * update PySAM files * Update docs for Version 3.0.1 * close #109 * remove stubs package dependency * removal of stubs package * Apple Silicon and Intel Wheel pip3 install --extra-index-url https://test.pypi.org/simple/ NREL_PySAM * update files and test * Add utility rate forecast example for new stateful cmod (#119) * Add utility rate forecast example for new stateful cmod * Update failing test_Reopt_sizing.py Add sys.SolarResource.wf_use_albedo = 0 * some stubs changes from develop. Additional documentation for utility rate forecast script * Additional subs files from comd_utilityrateforcast sam branches and develop * Correct energy charge schedule fields to match number of periods in energy charge fields * add tests and improve comments in example Co-authored-by: sjanzou <sjanzou@gmail.com> * PySAM documentation revisions * update setup and tests * update files * update versions.rst * update rsts * updates for v3.0.2 * update build_manylinux.sh * update comments * Modifications to PySSC to handle the conventions form ssc PR 907, plus module and docs updates to match * Pysam 116 urdb version 8 (#126) * Add resourcetools processing for urdbv8, update examples. currently fails on ur_yearzero_usage_peaks * Add new loadtools function to convert hourly data into monthly peaks * Mark urdb version as depricated. Move urdbv8 to new utility rate tools library. Update examples and tests * Fix #128 - correctly apply urdb flatdemandmonths to determine tiers * pysam v4.0.0 * update test * add error check to build_win.bat * fix docs * update cmake version Co-authored-by: sjanzou <sjanzou@gmail.com> Co-authored-by: sjanzou <steven@janzouconsulting.com> Co-authored-by: Brian Mirletz <brian.mirletz@nrel.gov> Co-authored-by: Paul Gilman <cpaulgilman@gmail.com>
- Loading branch information
1 parent
6c0f33e
commit 9423c56
Showing
127 changed files
with
44,022 additions
and
10,622 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import pandas as pd | ||
|
||
from pathlib import Path | ||
|
||
from PySAM.LoadTools import get_monthly_peaks | ||
|
||
""" | ||
A usage example for LoadTools.get_monthly peaks with hourly annual data | ||
Requires PySAM 4.0.0 or greater | ||
""" | ||
if __name__ == "__main__": | ||
df = pd.read_csv(str(Path(__file__).parent / "sample_load.csv"), dtype=float) | ||
load = pd.to_numeric(df.iloc[:, 0]).values # Consider checking length of array in case of subhourly data | ||
|
||
peaks = get_monthly_peaks(load, 1) | ||
|
||
print(peaks) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.