Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update return types for capacity_update_configuration #6489

Merged
3 commits merged into from
Feb 16, 2024

Conversation

ghost
Copy link

@ghost ghost commented Feb 15, 2024

Issue

see #6484 - Our yaml isn't consistent which means it's not loading in correctly to our ModeCapacity class

Description

  • update to update_zone_capacity_config and generate_zone_capacity_config so that the new capacity format for each mode is a list rather than a dict

Preview

image

Double check

  • I have tested my parser changes locally with poetry run test_parser "zone_key"
  • I have run pnpx prettier@2 --write . and poetry run format in the top level directory to format my changes.

@ghost ghost requested review from VIKTORVAV99 and unitrium February 15, 2024 16:54
@github-actions github-actions bot added python Pull requests that update Python code tests labels Feb 15, 2024
Copy link
Member

@VIKTORVAV99 VIKTORVAV99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

Thanks for fixing it at the source!

@ghost ghost merged commit 6425efb into master Feb 16, 2024
20 checks passed
@ghost ghost deleted the md/update-capacity-parser-return-types branch February 16, 2024 08:43
ghost pushed a commit that referenced this pull request Feb 16, 2024
* update return types for capacity_update_config

* format

---------

Co-authored-by: Mathilde Daugy <mathilde.daugy@electricitymaps.com>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant