Conversation
brtietz
left a comment
There was a problem hiding this comment.
This fixes the issue with PG&E, but creates a new issue if the utility has no valid rates. See comments in code for recommended fix.
|
Fix with suggested change from @brtietz |
|
I wrote this LK script to test all utilities: urdb-test.zip SAM crashes when loading rates for "City of Buhl, Minnesota (Utility Company": |
|
Run all 3970 utilities with script from @cpaulgilman without issue 0 of 3970: 3 Phases Energy Services has 1 rates |
cpaulgilman
left a comment
There was a problem hiding this comment.
Thank you for handling the optional 'sector' field and testing remaining utilities.
brtietz
left a comment
There was a problem hiding this comment.
Thanks for fixing and testing!





Note that this issue also has export config and sam_api updates for the latest develop branch of ssc.
The issue was with Utilities with more than 500 rates - the RapidJSON array was asserting when going beyond 500 rates. The OpenEI::QueryUtilityRates method has been rewritten.
To test, randomly go through utility companies retrieving rates.
For example, Arizona Public Service Co has 241 rates

PG&E has 1196 rates
