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

fix: pass _Builder start and end date to TransformProfile #587

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

danielolsen
Copy link
Contributor

Pull Request doc

Purpose

Ensure that profiles of appropriate length are being returned in partial-year Create-state Scenarios. This got broken during the refactor of #581, and must have been missed while we tested partial-year Analyze-state Scenarios.

What the code is doing

Now that profile slicing is contained within TransformProfile, with a dictionary of Scenario information passed to control the start & end timestamps to slice, we need to make sure that the _Builder object passes this information to the TransformProfile init.

Testing

Manually ran the tests in powersimdata/scenario/tests/test_create.py which aren't normally run (since they're marked integration.

Time estimate

5 minutes.

@danielolsen danielolsen self-assigned this Feb 14, 2022
@danielolsen danielolsen added the bug Something isn't working label Feb 14, 2022
Copy link
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.

Good catch.

@danielolsen danielolsen merged commit 9c62edb into develop Feb 14, 2022
@danielolsen danielolsen deleted the daniel/fix_create_tests branch February 14, 2022 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants