Skip to content

PV Snow Macro: Fix conversion when snow data expressed in inches#2079

Merged
brtietz merged 1 commit into
NatLabRockies:patchfrom
berg-michael:fix_inches_snow_macro
May 1, 2025
Merged

PV Snow Macro: Fix conversion when snow data expressed in inches#2079
brtietz merged 1 commit into
NatLabRockies:patchfrom
berg-michael:fix_inches_snow_macro

Conversation

@berg-michael

Copy link
Copy Markdown
Collaborator

Description

If one attempts to use the macro available in various PV configurations to append snow data measured in inches, the conversion step of the macro will fail with an unintuitive error message. This PR fixes this bug.

To test:
Create a new PV system. Download a weather file. Download the attached snow data. Attempt to append it to the weather file you download, selecting a header of size 1, a column name of (Observed) Snow Depth (in), and units as inches. The macro will fail. This PR fixes that failure.

Fixes # (issue(s)): None yet.

Corresponding branches and PRs:

None applicable.

Unit Test Impact:

None applicable.

Checklist

  • requires help revision and I added that label
  • adds, removes, modifies, or deletes variables in existing compute modules
  • adds a new compute module
  • changes defaults
  • I've tagged this PR to a milestone

denver, co_DVNC2_observed_snow_depth.csv

@brtietz brtietz requested review from brtietz and cpaulgilman April 23, 2025 19:30
@brtietz brtietz added this to the SAM 2025 release patch 1 milestone Apr 23, 2025
@brtietz brtietz added the bug label Apr 23, 2025

@cpaulgilman cpaulgilman 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. This fixes the snow depth conversion from inches to cm.

@brtietz brtietz merged commit 6592190 into NatLabRockies:patch May 1, 2025
@cpaulgilman cpaulgilman added the added to release notes PR and/or issue has been added to release notes for a public release label Jul 24, 2025
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.

3 participants