Update to PySAM Battery so size is changed in compute()#557
Open
elenya-grant wants to merge 2 commits intoNatLabRockies:developfrom
Open
Update to PySAM Battery so size is changed in compute()#557elenya-grant wants to merge 2 commits intoNatLabRockies:developfrom
elenya-grant wants to merge 2 commits intoNatLabRockies:developfrom
Conversation
This file contains hidden or 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
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.
Update to PySAM Battery so size is changed in compute()
Updated the
PySAMBatteryPerformanceModelso that the input charge rate and storage capacity are used incompute()andsimulate()instead of accessing those values from the config. Other changes include:BatteryOutputs, removedP_chargeableandP_dischargeablefrom outputs (they don't appear to be used)battery_chargeandbattery_discharge: (these are planned to be used in updated tests)PySAMBatteryPerformanceModelPySAMBatteryPerformanceModelConfigSection 1: Type of Contribution
Section 2: Draft PR Checklist
TODO:
setup()(one test with a pyomo controller, one test without a controller)pysam_battery.pypysam_battery.pyType of Reviewer Feedback Requested (on Draft PR)
Structural feedback:
Implementation feedback:
Other feedback:
Section 3: General PR Checklist
docs/files are up-to-date, or added when necessaryCHANGELOG.mdhas been updated to describe the changes made in this PRSection 3: Related Issues
Related to #521
Section 4: Impacted Areas of the Software
Section 4.1: New Files
N/A
Section 4.2: Modified Files
h2integrate/storage/battery/pysam_battery.pyPySAMBatteryPerformanceModelConfig: What and why something was changed in one sentence or less.PySAMBatteryPerformanceModelsetup(): removedP_chargeableandP_dischargeableoutputs, addedbattery_chargeandbattery_dischargeoutputs.compute(): removed usage ofBatteryOutputs, updated to use the inputs of charge rate and storage capacity rather than accessing those values from the config.simulate(): removed usage ofBatteryOutputs, updated to use the inputs of charge rate and storage capacity rather than accessing those values from the config.h2integrate/storage/battery/battery_baseclass.py: updated the input/output setting to use self.n_timesteps instead of copy_shapeSection 5: Additional Supporting Information
Section 6: Test Results, if applicable