-
Notifications
You must be signed in to change notification settings - Fork 85
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
Migrate CLI functionality to plugin layer subset 2 #2003
Conversation
@bayliffe, directly relevant change in reflection of this work in MetOffice/dagrunner#40 (you need not review that, I mention only out of interest). |
@@ -268,7 +269,7 @@ def _calculate_freezing_rain_probability( | |||
|
|||
return freezing_rain | |||
|
|||
def process(self, input_cubes: CubeList) -> Cube: | |||
def process(self, *input_cubes: Union[Cube, CubeList]) -> Cube: |
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.
This is the type of each positional argument (note the asterisk). That is, each positional argument can be either a cube or cubelist. The documentation should then stipulate that we expect 3 cubes amongst whatever form of input is provided.
I'll flesh out the documentation here 👍
Changes based on feedback from @bayliffe:
The only thing I haven't done as I'm not quite following is what the issue is, is in regards to #2003 (comment) |
80a83b2
to
53f2088
Compare
You happy to approve @bayliffe? cheers |
53f2088
to
5c9c797
Compare
I suspect the CI failures with Sphinx are unrelated to this PR (a result of changes in the conda-forge conda environment, prob. needs something pinning or something unpinning). |
…NALITY_EPP_SUBSET2
I have merged in master into this branch and changed the target (since subset 1 was merged I forgot to change it here). |
@mo-robert-purvis, you mind approving once more (it removed your approval after I changed the target to master). |
…NALITY_EPP_SUBSET2
I just merged master into this branch to resolve the CI failure. |
Thanks both. @bayliffe, I have made the leadtimes optional once more. Thanks for double checking this for me. |
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 Carwyn.
Second/final chunk of plugin changes required by EPP.
Tasks
Issues