Conversation
Also, when analysis period changes, reset to single value for consistent behavior in DataLifetimeMatrix. Can remove SetAnalysisPeriod from all callbacks. Can update DataLifetimeArray similarly
Working through code generation values not updated until DataLifetimeMatrix values are checked by reopening widget when analysis period changes. SetAnalysisPeriod no longer used but callbacks not updated to prevent merge conflicts.
|
Fix #994 Test file... Note that changing analysis period resets DataLifetimeMatrix to single value - consistent behavior now. |
brtietz
left a comment
There was a problem hiding this comment.
Great job finding and fixing the bug!
Would it make sense to add a pop-up when users change the analysis period? I worry that reverting things to single value is not intuitive, and users would benefit from a warning that's what's happening. Am I correct that trimming the values to a shorter analysis period (or adding zeroes) was significantly more difficult?
Also, I'm having some trouble with the Cambium downloads for analysis periods different than 25 years:
Is this related or should it be a separate issue?
Definite separate issue - created #1042 |
I agree with Brian's suggestion:
Also, note that #1040 has changes to merchant plant UI forms. |
Add revenue check message when changing analysis period
Still testing and checking for callback options
|
@sjanzou These latest changes look good. I used a message box for the analysis_period on_change function so the red debt-related UI text warnings still work. The message box gives a strong reminder to check the price data when the user changes the analysis period. |
|
The message works well, but I'm having some issues with multiple changes to the analysis period. Example:
In the above case, I would expect the widget to maintain hourly values, with zeroes from 87601 - 219000. I was also able to produce the issue by lengthening to 30, then 40 years (that one went to 1 minute timesteps). |
handle in ssc equations compute module to enable code generation, SAM and pySAM consistency
|
Items to test -
|
defaults and export config and windows results included
brtietz
left a comment
There was a problem hiding this comment.
The latest fixes work great, thank you!
cpaulgilman
left a comment
There was a problem hiding this comment.
These latest fixes look great. It's hard to test the JSON and code generator exports because of the large arrays, but it seems to be working well. I will work on the Cambium issues after this is merged into Patch.







No description provided.