Skip to content

Addresses SAM issue 486 - remove wex JSON and replace with RapidJSON#1821

Merged
sjanzou merged 15 commits into
patchfrom
SAM_486
Jul 28, 2024
Merged

Addresses SAM issue 486 - remove wex JSON and replace with RapidJSON#1821
sjanzou merged 15 commits into
patchfrom
SAM_486

Conversation

@sjanzou

@sjanzou sjanzou commented Jul 25, 2024

Copy link
Copy Markdown
Collaborator

Goes with NatLabRockies/wex#173

Please test utility rate retrieval and downloading and applying rates.

@sjanzou sjanzou self-assigned this Jul 25, 2024
@sjanzou sjanzou linked an issue Jul 25, 2024 that may be closed by this pull request

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

Unfortunately utility rate retrieval is only retrieving adjustments, not the full rate.

For rate RE-TOU for Xcel Energy of Colorado (https://apps.openei.org/IURDB/rate/view/66105af1efc5816003025d2a), Patch correctly pulls the following rate:

image

This branch pulls:

image

I think this is related to line 846 in urdb.cpp, see comment on that line for details.

Comment thread src/urdb.cpp Outdated
if (ers_tier[tier]["max"].IsDouble())
max = ers_tier[tier]["max"].GetDouble();
double buy = 0.0;
if (ers_tier[tier].HasMember("buy"))

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 think this should be "rate" instead of "buy" see error in main comment:

image

@sjanzou

sjanzou commented Jul 26, 2024

Copy link
Copy Markdown
Collaborator Author

Unfortunately utility rate retrieval is only retrieving adjustments, not the full rate.

For rate RE-TOU for Xcel Energy of Colorado (https://apps.openei.org/IURDB/rate/view/66105af1efc5816003025d2a), Patch correctly pulls the following rate:

image

This branch pulls:

image

I think this is related to line 846 in urdb.cpp, see comment on that line for details.

@brtietz , thanks for catching the "buy" versus "rate" mistake for energy charges - updated and test in 4a6ba0d

image

@sjanzou sjanzou requested a review from brtietz July 26, 2024 05:20

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

Thanks for updating! Everything tests well with the fix.

@sjanzou sjanzou merged commit 720a227 into patch Jul 28, 2024
@sjanzou sjanzou deleted the SAM_486 branch July 28, 2024 07:01
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.

Use RapidJSON through SAM code

2 participants