-
Notifications
You must be signed in to change notification settings - Fork 59
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
CO₂ migration plugin #994
CO₂ migration plugin #994
Conversation
ad5c4b1
to
2af60bf
Compare
All comments should now have been addressed. There are some discussion points remaining, but I think they mostly relate to"big-picture" issues. |
Fixed black and pylint reports. Came across an issue related to dependencies. This plugin implements a contour line generator which depends on matplotlib and shapely. I cannot see that these are used elsewhere. What is the policy for new dependencies? There are some options here:
|
For Equinor usage (komodo) I don't see this as a problem as both packages are already included. |
Sorry, didn't see this until now. We have tried before to avoid including unnecessary dependencies, and intentionally removed |
Added a check for matplotlib + shapely availability. If an ImportError is raised, the functionality is effectively turned off. I think this is a reasonable solution for now, as this is not a critical part of the plugin. It is an experimental feature that we might want to improve upon later. That being said, I suspect matplotlib and shapely are implicit dependencies of webviz_subsurface after all, probably via xtgeo? (I didn't really test properly until after the commit above). When I try to run this plugin, I get ImportError if matplotlib or shapely is not installed, originating from other parts of the code. Since matplotlib/shapely is not explicit dependencies, I think the solution implemented in b7764aa should be fine |
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 👍
Aimed at #993
Implements a new plugin for CO2 leakage analysis, using the new layout framework.
Example data is available via equinor/webviz-subsurface-testdata#136
(Known) remaining tasks: