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

More cli refactoring #2075

Merged
merged 6 commits into from
Jan 21, 2025
Merged

More cli refactoring #2075

merged 6 commits into from
Jan 21, 2025

Conversation

SamGriffithsMO
Copy link
Contributor

@SamGriffithsMO SamGriffithsMO commented Jan 9, 2025

Description

More CLI refactoring for simplified implementation of dagrunner

Testing:

  • Ran tests and they passed OK
  • Added new tests for the new feature(s)

@SamGriffithsMO SamGriffithsMO self-assigned this Jan 9, 2025
@SamGriffithsMO SamGriffithsMO marked this pull request as draft January 9, 2025 15:08
@SamGriffithsMO SamGriffithsMO marked this pull request as ready for review January 9, 2025 15:30
@SamGriffithsMO SamGriffithsMO requested a review from cpelley January 9, 2025 15:31
@SamGriffithsMO
Copy link
Contributor Author

I'll put this up for a science review once I have a review from the systems team

cpelley
cpelley previously approved these changes Jan 10, 2025
Copy link
Contributor

@cpelley cpelley left a comment

Choose a reason for hiding this comment

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

Looks good to me. Optional change to improver plugin UI (GenerateTimeLaggedEnsemble).
Thanks for doing this ❤️

@@ -36,6 +37,18 @@ def process(self, cubelist: Union[List[Cube], CubeList]) -> Cube:
Returns:
Concatenated forecasts
"""
if len(cubelist) == 1:
Copy link
Contributor

@cpelley cpelley Jan 10, 2025

Choose a reason for hiding this comment

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

Not a required change, but I typically would use as_cubelist(cubes) before this and adding *cubes to the args of the function. This makes it a bit more flexible to how one calls and interacts with the plugin.

Copy link
Contributor

@cpelley cpelley left a comment

Choose a reason for hiding this comment

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

Thanks @SamGriffithsMO, that's awesome.

@bayliffe bayliffe self-assigned this Jan 21, 2025
Copy link
Contributor

@bayliffe bayliffe left a comment

Choose a reason for hiding this comment

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

Thanks Sam, these changes look fine.

@bayliffe bayliffe merged commit 74fb3dd into master Jan 21, 2025
8 checks passed
@bayliffe bayliffe removed their assignment Jan 21, 2025
@bayliffe bayliffe deleted the sg_cli_refactoring branch January 21, 2025 14:34
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.

3 participants