-
Notifications
You must be signed in to change notification settings - Fork 303
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
Add support for satpy.composites entry points #1117
Add support for satpy.composites entry points #1117
Conversation
💬 This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues. |
Just to make sure these are connected, this is related to #784 and #789. Nice job getting an example going. I think this would be good as a short term solution, but I'm not sure a short term solution will evolve into a long term solution for such an involved interface like this. My biggest concern is with the discussion that we had in the referenced issues about Another question, in the
Is there any chance of packages overriding other packages if they both use |
Wouldn't external packages putting things in |
@djhoese thanks for provided the quick feedback and reference to previous issues. This doesn't indeed change anything to the way composites are loaded, it merely adds extra config paths to the places that are searched for composite configs. But this can be update when/if we change to directory structures. I don't really like the idea of having all configs in the same central satpy directory, risks of conflicts are present. And it would be clearer IMO to keep in each plugins structure. (And how would uninstallation be handled?) Regarding your last question, the [EntryPoint.parse('example_composites = satpy_cpe'),
EntryPoint.parse('example_composites = satpy_cpe2')] |
@mraspaud sounds good on the @gerritholl @mraspaud for the That said, we could also expect |
Ok, thanks for clarifying. So, you are proposing to use |
I'm not sure on the full path. For the
My original concern/point was do we want to take the shortcut for this solution only to possibly regret it later. Meaning, if we want to do "data_files" or restructure the That said, I'm leaning towards just merging this. |
OK, then I think this requires more discussion. I'll still add some tests so we can merge this now. If we mark this as experimental, we're got our backs free 🙂 |
So maybe we keep it undocumented until @gerritholl and @jsolbrig can test it out in the real world? |
Yes, something like that. I might start with some light doc, just to make sure we understand each other, but I'll mark it clearly as not to be used yet. |
Codecov Report
@@ Coverage Diff @@
## master #1117 +/- ##
==========================================
+ Coverage 89.32% 89.33% +<.01%
==========================================
Files 197 197
Lines 28999 29022 +23
==========================================
+ Hits 25904 25927 +23
Misses 3095 3095
Continue to review full report at Codecov.
|
@djhoese Can we merge this ? |
Go for it. I'll let you do the actual merge in case you needed to change anything. |
I'll let it be as it is for now. |
This adds support for entry_points in satpy, in particular for composites.
The composites defined in other packages (in yaml files) are now loaded directly into satpy.
An example package to achieve this is on display here: https://github.com/mraspaud/satpy-composites-plugin-example
flake8 satpy