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
Deprecate GraphicsArray import from sage.plot.graphics #28675
Comments
Author: Eric Gourgoulhon |
New commits:
|
This comment has been minimized.
This comment has been minimized.
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:3
The merge conflict solved above was due to the introduction of #27866 in Sage 9.0.beta4. |
This comment has been minimized.
This comment has been minimized.
comment:6
I like the spirit of this. Can you actually view this array and do the usual (old) methods with it for now? (I regret that I cannot actually test this due to time constraints - a sad refrain the past few years.) Anyway, if so and green patchbot, this is probably the best way to deal with this situation, unless William has other improvements he would suggest. |
comment:7
Replying to @kcrisman:
Yes absolutely, since the object constructed from |
comment:8
Replying to @kcrisman:
The patchbot is still green... |
Reviewer: Frédéric Chapoton |
comment:10
Thanks! |
comment:11
+1 thanks chapoton! |
Changed branch from public/graphics/GraphicsArray_import-28675 to |
#27865 has refactored the class
GraphicsArray
, making it a subclass ofMultiGraphics
, and has moved its definition fromsrc/sage/plot/graphics.py
tosrc/sage/plot/multigraphics.py
. As pointed out in https://groups.google.com/d/msg/sage-devel/eTl4DHcwnOo/uQSOtstWAwAJ, this has broken Sage's API: the import viadoes not longer work. This ticket makes it work again, but with the following deprecation notice:
A possible shortcoming of the approach adopted here is that the deprecation message appears only at the first use of
GraphicsArray
, not during theimport
itself. Actually, I don't know if it is possible to generate a deprecation warning during some import.CC: @williamstein @kcrisman
Component: graphics
Keywords: GraphicsArray
Author: Eric Gourgoulhon
Branch/Commit:
87bc58a
Reviewer: Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/28675
The text was updated successfully, but these errors were encountered: