-
-
Notifications
You must be signed in to change notification settings - Fork 490
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
_sympy_ methods for some parent classes #31931
Comments
Commit: |
New commits:
|
Author: Matthias Koeppe |
comment:3
Nice - if patchbot says yes this this seems to be good. Question: Do these reimport into Sage as one might expect (does the diagram commute in either direction)? If so, some tests for that might be appropriate. Also, with the products, what happens if one of the parts doesn't have a Sympy version - presumably there is an error message, but is it a useful one? |
comment:4
Replying to @kcrisman:
No, the other direction of conversion is not implemented yet, this would be part of #31935. The closest we have is |
comment:5
Replying to @kcrisman:
It fails with an unpleasant error message because SymPy tries too hard to make sense of it. Example:
#31938 will provide all Sage sets with a |
comment:6
Replying to @mkoeppe:
I agree this isn't as helpful to the end user. What I'd formally recommend as a review, until #31938 is merged, is to document this type of error as a doctest so it is at least searchable if someone comes across it. |
Dependencies: #31938 |
This comment has been minimized.
This comment has been minimized.
comment:8
Now, after merging #31938, this example works:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
Nice. I am not reviewing that one, but anyway that was my only comment on this one. |
comment:14
because there is no |
comment:16
Right, that method comes from #31877, which I have now merged |
comment:17
Now to wait for the patchbot one more time. |
Reviewer: Karl-Dieter Crisman |
comment:18
Patchbots seem stuck on #31928, |
comment:19
Setting to positive as per comment:13. |
comment:20
Thanks! |
Changed branch from u/mkoeppe/_sympy__methods_for_some_parent_classes to |
We add
_sympy_
methods to various parent classes, returning sympyIntegers
,Reals
,Complexes
,ProductSet
.These methods override the generic
_sympy_
method provided by #31938.Part of #31926 Meta-ticket: Connect Sage sets to sympy sets
Depends on #31938
Depends on #31877
CC: @tscrim @kcrisman @certik @videlec
Component: interfaces
Author: Matthias Koeppe
Branch/Commit:
32cdd5c
Reviewer: Karl-Dieter Crisman
Issue created by migration from https://trac.sagemath.org/ticket/31931
The text was updated successfully, but these errors were encountered: