-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hybrids in PySAM #162
Merged
Hybrids in PySAM #162
Conversation
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
dguittet
added a commit
that referenced
this pull request
Mar 18, 2024
* Hybrids in PySAM (#162) * add tests for updated PySSC * add hybrids * update hybrids and add tests * remove set_data_ptr * update ctypes and PySSC * add yml for github actions CI * update yml * update yml * update yml * update yml * update yml * update yml * update yml * update yml * remove hybrid_sandbox * update files * update test_hybrids * update CI yml * remove M1 mac test for now * update test_pysam_all * update test * add back M1 mac test * update test_pkg.yml * update test_pkg.yml * update test_pkg.yml * update test_pkg.yml * update test_pkg.yml * update test_pkg.yml * fix mem leak in test_pyssc * update yml for CI * update build scripts * update test_pkg.yml * update test_pkg.yml * update test_pkg.yml * update test_pkg.yml * update test_pkg.yml
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds Hybrids models in Python via a Wrapper in Python,
HybridBase
andHybridSystem
.HybridSystem
contains each technology and financial Module as properties for direct accessHybridGenerator
)execute
, all the inputs will be copied from the technology and financial modules into the Hybrid module. Then after simulation of the Hybrid module, all the inputs and outputs will be copied back out into each of the technology and financial modulesUpdates to PySSC
PySAM modules have
get_data_ptr
function that provides the pointer to the underlying ssc_data_t. Almost the opposite functionality ofwrap
exceptwrap
takes over ownership of the data_ptr butget_data_ptr
doesn't release ownership.Add
tests/test_hybrid.py
that reproduces tests and results in NREL/ssc/ssc/tests