-
Notifications
You must be signed in to change notification settings - Fork 91
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
More cli refactoring #2075
Conversation
I'll put this up for a science review once I have a review from the systems team |
There was a problem hiding this 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: |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
There was a problem hiding this 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.
Description
More CLI refactoring for simplified implementation of dagrunner
Testing: