Improve REopt calls#1714
Conversation
Display API error from UI callback
Automatically close progress bar when API call finishes
There was a problem hiding this comment.
The new UI loading boxes look great! I'm having an issue where the REopt call always returns a zero battery size from this branch, even in cases where the battery has obvious value (PVWatts-Battery commercial), and cases where it returns a battery size in the released version. Did you see this as you were developing the branch? Or is this more likely to be a bug on their end?
I also saw this. Sometimes rerunning REopt a few times results in a non-zero battery, so I'm not sure if it's SAM sending different data to the API or something on the REopt side. Also, the default case in this branch/Patch has different battery parameters than the default: If you agree, I'd like to close this so we can fix the issue of REopt API calls causing SAM to crash, and investigate this as a separate issue for Patch 2. |
brtietz
left a comment
There was a problem hiding this comment.
Yes, digging into the sizing issues for patch 2 and merging this for patch 1 makes sense to me.

Pull Request Template
Description
Fix #1671 by reporting error message from API instead of causing SAM to crash. Requires building SAM-private to test.
Note that DimensionMismatch error from these test files is due to a bug in REopt API that the REopt team is fixing.
Improve REopt API calls:
time_steps_per_hourat https://developer.nrel.gov/api/reopt/stable/help?api_key=DEMO_KEY.Type of change
Please delete options that are not relevant.
Checklist:
If you have added a new compute module in a SSC pull request related to this one, be sure to check the Process Requirements.