-
Notifications
You must be signed in to change notification settings - Fork 1
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
[feat] Support post processing predict as learnt and predict on cells for surface variables #117
base: main
Are you sure you want to change the base?
[feat] Support post processing predict as learnt and predict on cells for surface variables #117
Conversation
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.
I think class names need to change. And we might want to turn SurfaceVTP
into _SurfaceVTP
and undocument it if it's not meant to be used directly anymore. Hell maybe remove it entirely given the class is empty.
@@ -56,6 +56,14 @@ Available postprocessings | |||
:members: | |||
|
|||
|
|||
.. autoclass:: PostProcessingOnCells() | |||
:members: |
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.
Might want to have inherited-members as well.
@@ -274,6 +275,40 @@ class SurfaceVTP(_PostProcessingVTKExport): | |||
""" | |||
|
|||
|
|||
class PostProcessingOnCells(SurfaceVTP): |
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.
I didn't follow the product story but these class name seems too generic.
Description
This PR enables users to trigger post-processing on surface variables with location options;
on cells
oras learnt
.To manage the selection of endpoints for the two options, the classes
PostProcessingOnCells
andPostProcessingAsLearnt
are introduced as child-classes ofSurfaceVTP
. These choices are enumerated inPPSurfaceLocation
. The methodsPredictionPostProcessings.surface_vtp
andSelectionPostProcessingsMethods.surface_vtp
have now the argumentpp_location
, which should be one enumeration option ofPPSurfaceLocation
. The default option is set toStory: [sc-26496]
Tests
PS. It requires merging the corresponding PR of the API support.