Skip to content

Combine cases macro checks lifetime mode#2012

Merged
brtietz merged 2 commits into
patchfrom
sam_1752_enforce_subhourly_for_one_year_simulations
Feb 20, 2025
Merged

Combine cases macro checks lifetime mode#2012
brtietz merged 2 commits into
patchfrom
sam_1752_enforce_subhourly_for_one_year_simulations

Conversation

@brtietz

@brtietz brtietz commented Feb 18, 2025

Copy link
Copy Markdown
Collaborator

Pull Request Template

Description

Add code to check whether or not a simulation uses lifetime mode prior to assessing whether or not the simulation is subhourly

Fixes #1752

To test: Create a PVWatts case with a subhourly weather file, a PVWatts case with an hourly weather file, and a custom generation case that combines these two cases. The combine cases script should flag the fact that a case is subhourly and give an error that it is not currently supported.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

@brtietz brtietz added the bug label Feb 18, 2025
@brtietz brtietz added this to the 2024 Release Patch 1 milestone Feb 18, 2025

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

Can you please change the error message from the technology name to the case name? For example in the attached project file, change "PVWatts" to "subhourly" in the error message:
image

Referenced project file
SAM_PR_2012.zip

@brtietz brtietz requested a review from sjanzou February 19, 2025 16:14
@brtietz

brtietz commented Feb 19, 2025

Copy link
Copy Markdown
Collaborator Author

Can you please change the error message from the technology name to the case name? For example in the attached project file, change "PVWatts" to "subhourly" in the error message: image

Referenced project file SAM_PR_2012.zip

Thanks for testing! Fixed in latest push.

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

Great! Thanks for addressing the subhourly/hourly combination!

@brtietz brtietz merged commit 6df0e0b into patch Feb 20, 2025
@brtietz brtietz modified the milestones: 2024 Release Patch 1, SAM Spring 2025 Release Mar 7, 2025
@cpaulgilman cpaulgilman added the added to release notes PR and/or issue has been added to release notes for a public release label Apr 7, 2025
@brtietz brtietz deleted the sam_1752_enforce_subhourly_for_one_year_simulations branch April 18, 2025 22:23
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 bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Combine Cases Macro doesn't check simulation timesteps

3 participants