-
Notifications
You must be signed in to change notification settings - Fork 268
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
Make some dependencies optional #2641
Conversation
maxnoe
commented
Nov 8, 2024
•
edited
Loading
edited
- matplotlib
- Bokeh
- eventio
- iminuit
People will get an
|
And for using
|
…entSource.is_compatible
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Why strip out matplotlib? Is this to save time on the cluster setup? My first reaction is that this will make dev more annoying as I have to manually install it to make plots whenever I recreate the conda environment from the latest environment file. Also, dropping ImPACT as a reco method available by default seems a bit drastic and something we're very likely to revert once we actually have a sensitivity curve for a tuned analysis. Is it possible to make this stripped down version gated behind some special install instead of being the default case? |
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This was explicitly requested by the ACADA SAG group. And I agree, matplotlib is a heavy dependency that we shouldn't install in circumstances where only processing events is required.
I think you are confusing DataPipe and ctapipe requirements here, DataPipe is free to depend on
No, not at the moment, at least not for the PyPI package. You can only add optional dependencies, not provide a default that has more and an extra that strips it down. conda-forge doesn't do optional dependencies at all, so what most larger projects do is provide a |
Also note that the So
will still give your everything |
Astropy is currently preparing a PEP for making it possible to have more dependencies by default |
Analysis Details1 IssueCoverage and DuplicationsProject ID: cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs |