Skip to content

Variables and forms for setting standalone battery timestep#1887

Merged
brtietz merged 9 commits into
developfrom
ssc_994_standalone_battery_subhourly
Oct 28, 2024
Merged

Variables and forms for setting standalone battery timestep#1887
brtietz merged 9 commits into
developfrom
ssc_994_standalone_battery_subhourly

Conversation

@brtietz

@brtietz brtietz commented Oct 23, 2024

Copy link
Copy Markdown
Collaborator

Add new page for stand alone battery timestep, and add it to the "battery" group before the cell and system info.

List numbers don't seem to translate directly into ssc, so add some lk to deal with this.

Mismatches with load, revenue, and curtailment lengths are enforced within ssc as appropriate, the other battery models don't have red text or pop up warnings for these, so I haven't added them here.

Does this require changes to the version upgrade script, or is that a separate effort?

Goes with NatLabRockies/ssc#1227

@brtietz brtietz added enhancement battery requires help revision Requires a Help revision before releasing public version labels Oct 23, 2024
@brtietz brtietz added this to the SAM Fall 2024 Release milestone Oct 23, 2024
@brtietz brtietz self-assigned this Oct 23, 2024
@mjprilliman

Copy link
Copy Markdown
Collaborator

It looks like the 'Battery Standalone Timestep.json' UI form didn't make it into the commit here.

@brtietz

brtietz commented Oct 24, 2024

Copy link
Copy Markdown
Collaborator Author

It looks like the 'Battery Standalone Timestep.json' UI form didn't make it into the commit here.

Thanks for catching, just pushed it!

@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.

This error message could use some additional text as there is no weather file (BTM standalone battery mismatch between timestep and load timestep).

image

On the UI form, fit the group box to the contents, give a larger buffer between the text and the group box for different fonts on different platforms, and reduce the width of the dropdown some.

On version upgrade, maybe set timestep_minutes and timestep_minutes_ui to the corresponding value from curtailment, revenue, or load length from the old case?

@brtietz brtietz requested a review from mjprilliman October 24, 2024 20:28

@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.

Looks good, just a couple nitpicks and some things to check when going through the release checklist.

i++;
}

value("timestep_minutes", timestep_mins);

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.

image

This reads a little confusing because they have the same label. Maybe change the actual minutes variable (not the UI one)?

@@ -0,0 +1,184 @@
{

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.

image

Just a note to check this on Mac and Linux to make sure there's no overlap between the line and text on the left hand side during pre-release checklist.

@cpaulgilman cpaulgilman Oct 25, 2024

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.

I redid this a bit, so it should work across platforms and line up with the other battery forms:

image

@cpaulgilman

Copy link
Copy Markdown
Collaborator

@brtietz, @mjprilliman Any objections to moving this form to the Battery Cell and System page so that it appears under the "Chemistry" group? Right now when you create a new Standalone Battery case, all you see is the simulation time step input with the Battery item in the navigation collapses, which might cause some folks to panic.

@brtietz

brtietz commented Oct 25, 2024

Copy link
Copy Markdown
Collaborator Author

@brtietz, @mjprilliman Any objections to moving this form to the Battery Cell and System page so that it appears under the "Chemistry" group? Right now when you create a new Standalone Battery case, all you see is the simulation time step input with the Battery item in the navigation collapsed, which might cause some folks to panic.

No objections to moving it. I trust your intuition on user expectations & panic levels.

This makes Battery Cell and System the page that loads for standalone battery configurations instead of the Battery Time Step page
@cpaulgilman

Copy link
Copy Markdown
Collaborator

@brtietz, @mjprilliman Any objections to moving this form to the Battery Cell and System page so that it appears under the "Chemistry" group? Right now when you create a new Standalone Battery case, all you see is the simulation time step input with the Battery item in the navigation collapsed, which might cause some folks to panic.

No objections to moving it. I trust your intuition on user expectations & panic levels.

I moved it below Battery Cell and System as a compromise -- simpler implementation than putting it on Battery Cell and System page and avoids the potential panic.

image

@brtietz brtietz merged commit 8571732 into develop Oct 28, 2024
@cpaulgilman cpaulgilman removed the requires help revision Requires a Help revision before releasing public version label Nov 21, 2024
@cpaulgilman cpaulgilman added the added to release notes PR and/or issue has been added to release notes for a public release label Dec 11, 2024
@brtietz brtietz deleted the ssc_994_standalone_battery_subhourly branch December 13, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

added to release notes PR and/or issue has been added to release notes for a public release battery enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants