Skip to content

Support multiple ERCOT products response shapes #4

Closed
kvkenyon wants to merge 2 commits into
mainfrom
refactor/ercot-subpackage
Closed

Support multiple ERCOT products response shapes #4
kvkenyon wants to merge 2 commits into
mainfrom
refactor/ercot-subpackage

Conversation

@kvkenyon
Copy link
Copy Markdown
Owner

@kvkenyon kvkenyon commented Dec 29, 2025

Note

Scope: Improve robustness of ERCOT products parsing and add regression coverage.

  • Update ERCOT._products_to_dataframe to accept diverse response shapes: plain {"products": [...]}, HAL {"_embedded": {"products": [...]}}, nested {"additional_properties": {"_embedded": {"products": [...]}}}, and raw lists; handles None/non-dict inputs safely
  • Add regression tests verifying DataFrame conversion for each shape and that get_product dispatches the correct URL

Written by Cursor Bugbot for commit 91d4fac. This will update automatically on new commits. Configure here.

cursoragent and others added 2 commits December 29, 2025 00:45
Co-authored-by: kvkenyon <kvkenyon@utexas.edu>
…dling-553a

Ercot product response handling
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 29, 2025

Codecov Report

❌ Patch coverage is 90.62500% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
tinygrid/ercot/client.py 90.62% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@kvkenyon kvkenyon closed this Dec 29, 2025
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.

2 participants