Skip to content

refactor: more intermediate output columns and input validation#105

Merged
dmuldrew merged 4 commits intodevelopfrom
capacity_planning_redux
Mar 4, 2020
Merged

refactor: more intermediate output columns and input validation#105
dmuldrew merged 4 commits intodevelopfrom
capacity_planning_redux

Conversation

@dmuldrew
Copy link
Copy Markdown
Collaborator

@dmuldrew dmuldrew commented Mar 3, 2020

This PR brings the capacity scaling framework up date with the latest changes.

The main changes are:
(1) code to adapt to the current format of the allowed resourced column
(2) additional columns of intermediate calculations added the next capacities dataframe
(3) input validation for capacity factors, etc.
(4) refinement of object JSON string output

@dmuldrew dmuldrew added this to the Suncadia Break milestone Mar 3, 2020
@dmuldrew dmuldrew requested a review from BainanXia March 3, 2020 19:52
@dmuldrew dmuldrew self-assigned this Mar 3, 2020
@BainanXia BainanXia self-assigned this Mar 3, 2020
Comment thread powersimdata/scaling/clean_capacity_scaling/tests/test_target_manager_input.py Outdated
Comment thread powersimdata/scaling/clean_capacity_scaling/tests/test_target_manager_input.py Outdated
@BainanXia
Copy link
Copy Markdown
Collaborator

Integration test: it generates exactly same results with the previous code. Just need some pep8 cleanings and we are good to go. Good to see the corner cases are captured specifically.

'total_demand': [200000, 300000],
'external_ce_historical_amount': [0, 0],
'solar_percentage': [.3, .6]}
'solar_percentage' :[.3, .6],
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.

The space added at wrong place...

Copy link
Copy Markdown
Collaborator

@BainanXia BainanXia left a comment

Choose a reason for hiding this comment

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

Nice

@dmuldrew dmuldrew merged commit d11ac8a into develop Mar 4, 2020
@dmuldrew dmuldrew deleted the capacity_planning_redux branch April 4, 2020 01:01
@ahurli ahurli mentioned this pull request Mar 11, 2021
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