-
-
Notifications
You must be signed in to change notification settings - Fork 491
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 "sage_input" for polyhedron objects output the backend used #22565
Comments
comment:1
I agree that we need to have this feature! Perhaps it would make sense to implement a function So I guess it would be cleanest to store the backend information somehow in What do you think? |
comment:3
Replying to @mo271:
+1 for getting a function
One way to go, since each (backend/base_ring) combination creates a different parent in parent.py would be to create an init function for each of these parents that executes the init of the Because doing it in Polyhedra_base seems to be messy (how to know the backend information at this stage?). |
Branch: u/moritz/22565 |
comment:5
I looked at it again and now think its best to put it in Once the New commits:
|
Commit: |
comment:6
The backend method looks good. I guess you can proceed with the sage_input part. Thanks! |
comment:8
I have not (yet) added doctests polymake and (py)normaliz; do you think this is needed? |
comment:9
Replying to @mo271:
Yes, that would be nice! Especially since they are backends and it's about backends... |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
I have not tested the polymake doctest, since I don't have polymake installed at the moment. Let's see what the bot says.. |
comment:12
All right, I'll have a look! |
comment:13
For now, I get:
If you don't want to see the |
Changed branch from u/moritz/22565 to u/jipilab/22565 |
Reviewer: Jean-Philippe Labbé |
Author: Moritz Firsching |
comment:15
Hi Moritz, All tests pass on beta3. It seems to fix the issue with the backend. I put a TODO in the doctest to add handling of the Look at the change and if you are happy, you can set it as positive review. New commits:
|
comment:17
See the patchbot result |
Work Issues: Broke the associahedron |
comment:18
It seems that the creation of the associahedron is broken by this code (!?) |
comment:19
Maybe the backend must be specified in
near the end of src/sage/combinat/root_system/associahedron.py |
comment:20
That does not seem to be enough. I'm puzzled by how to fix this. Now the I changed also line 33 like this:
to get the correct backend. But I still get similar errors. Any cues? |
Changed branch from u/jipilab/22565 to public/22565 |
comment:21
Here is a tentative that works.. Maybe Travis would find a better way ? New commits:
|
comment:22
Oh, I see! But isn't this a bit weird considering the fact that the class |
comment:23
I think it is a bad idea in the first place to have a class such as |
comment:24
The bot seems to like the hack. Perhaps as a follow-up, it would be good to change the inheritance of the Otherwise, as of now, I would put this ticket as positive review. |
comment:25
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:29
This looks good to go. The last bot gave a green light. |
Changed reviewer from Jean-Philippe Labbé to Jean-Philippe Labbé, Frédéric Chapoton |
Changed branch from public/22565 to |
Currently, the
sage_input
function of a Polyhedron object does not provide the backend used.It should be able to give it.
CC: @mo271 @mkoeppe @videlec @sagetrac-tmonteil @fchapoton
Component: geometry
Keywords: days84
Work Issues: Broke the associahedron
Author: Moritz Firsching
Branch/Commit:
28e2b71
Reviewer: Jean-Philippe Labbé, Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/22565
The text was updated successfully, but these errors were encountered: