Skip to content

Version upgrade updates#1602

Merged
janinefreeman merged 10 commits into
developfrom
version-upgrade-updates
Nov 30, 2023
Merged

Version upgrade updates#1602
janinefreeman merged 10 commits into
developfrom
version-upgrade-updates

Conversation

@janinefreeman

Copy link
Copy Markdown
Collaborator

Updates the version upgrade script to make the language clearer for the adjust variable changes (from table with semicolons to separate variables with underscores) and fixes the logic for upgrading the "enable custom time period" losses in that widget, which were not upgrading correctly in the current dev version.

Please specifically test enabling a custom time period loss in SAM 2022.11.21 and upgrading that file, and check that the loss upgrades correctly.

@janinefreeman janinefreeman added this to the SAM Fall 2023 Release milestone Nov 20, 2023
@janinefreeman janinefreeman self-assigned this Nov 20, 2023
@janinefreeman janinefreeman marked this pull request as draft November 20, 2023 23:45
@janinefreeman janinefreeman marked this pull request as ready for review November 22, 2023 21:15

@mjprilliman mjprilliman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some labels missing for the upgrade reporting (and parametrics) + issues running the previous version defaults when no adjustment changes are made.

value('adjust_en_timeindex', x.en_timeindex, 'Convert AC Losses adjust:en_timeindex to adjust_en_timeindex');
value('adjust_timeindex', x.timeindex, 'Convert AC Losses adjust:timeindex to adjust_timeindex');
message('Availability losses variable format changed from single table ("adjust") to separate variables: adjust_constant (number), adjust_en_timeindex (number), adjust_timeindex (array), adjust_en_periods (number), adjust_periods (array).');
value('adjust_constant', x.constant);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dc_adjust and adjust variables need labels for PV Losses, potentially other technologies.

image

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is likely a separate issue, as it looks like a lot of pages need names for adjust_" " variables.

Comment thread deploy/runtime/versions.lk Outdated
value('adjust_constant', x.constant);
value('adjust_en_periods', x.en_periods);
p = x.periods; //this logic works for both blank period arrays and for completed ones
value('adjust_periods', p);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adjust_periods_dc fails on simulate when upgrading the default detailed PV case (without changing anything)

image

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue also occurs for default Physical Trough CSP, likely others.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't replicate this on my machine. However, what is getting loaded in seems to have changed and is no longer working for me. Possibly a wxwidgets issue? Let's talk more at our working session...

@mjprilliman

Copy link
Copy Markdown
Collaborator

Will close #1604

@mjprilliman mjprilliman linked an issue Nov 28, 2023 that may be closed by this pull request
@mjprilliman

Copy link
Copy Markdown
Collaborator

version-upgrade-testing-csp.zip
My goal is to run the cases in these two files through the upgrade script and have them simulate without any error.

@mjprilliman mjprilliman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last commit fixed the issues I was finding on the first review. Thanks for working through this!

@janinefreeman janinefreeman merged commit 66e454f into develop Nov 30, 2023
@janinefreeman janinefreeman deleted the version-upgrade-updates branch November 30, 2023 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Separate adjust variables need variable names

3 participants