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

refactor compute_grid_info() #957

Merged
merged 2 commits into from
Nov 1, 2024
Merged

Conversation

simonpcouch
Copy link
Contributor

Refactors compute_grid_info() to set the stage for postprocessing. Instead of having one function per has_preprocessor x has_model x has_postprocessor combination, simplifies to one code path.

Related to #948, where I made sure to test thoroughly that these changes would have no effect on output. The column ordering does indeed change, but this object never makes it to users and we always subset it by name internally.

Copy link
Member

@topepo topepo left a comment

Choose a reason for hiding this comment

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

These changes make a lot of sense; we over-engineered the code that generates the grid tasks early on.

I've tested this in a few different scenarios today and don't see any issues.

Also, I would not worry about the column order; I doubt that we are calling by order instead of name (and shame on us if we do 😄 )

@simonpcouch simonpcouch merged commit abe9fa6 into main Nov 1, 2024
14 checks passed
@simonpcouch simonpcouch deleted the simplify-compute-grid-info branch November 1, 2024 20:38
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