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 ValueError from chunks in time in existing workflows #128

Merged
merged 2 commits into from
Nov 8, 2021

Conversation

brews
Copy link
Member

@brews brews commented Nov 8, 2021

Fixes bug from: 'ValueError: ... Multiple chunks along the main adjustment dimension time is not supported' when running dodola train-aiqpd.

We get this from running the new dodola train-aiqpd in legacy workflows. Ideally, we'd resolve this by changing chunking in upstream workflow steps, but train_aiqpd was written so we would not need to address these kinds of breaking changes until a later time. In other words, train_aiqpd needs to support bad input dataset chunking to support legacy. This PR fixes it so that it does so.

We're loading the input reference datasets before "training" AIQPD as a solution because this is the process used by the apply-aiqpd service. So it's consistent with existing behavior.

Error message is "Multiple chunks along the main adjustment dimension time is not supported". Ideally, we'd resolve this by changing chunking in upstream workflow steps, but `train_aiqpd` was written so we would not need to address these kinds of breaking changes until later. In other words, `train_aiqpd` needs to support bad input chunking to support legacy.
@brews brews added the bug Something isn't working label Nov 8, 2021
@brews brews self-assigned this Nov 8, 2021
@brews brews merged commit 2b49b01 into ClimateImpactLab:main Nov 8, 2021
@brews brews deleted the fix_aiqpd_chunking branch November 9, 2021 04:02
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.

1 participant