-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Conversion failure ℚ[√a] → CIF #23739
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:3
First I thought this was because there was no convert or coerce map registered. But apparently the coercion framework is not even called in this conversion, because the coercion framework works without problems!
|
comment:4
The problem is that CIF implements its own |
Branch: u/mderickx/23739 |
Author: Maarten Derickx |
New commits:
|
Commit: |
comment:6
see patchbot for an error |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
Ok, the error is fixed. Sorry for letting that one slip by. |
comment:9
Thanks for your work on this ticket! I think it would be better to remove the Also, I realized that I had an old branch lying around where I had started doing something similar (perhaps in view of #15114). I'm not sure why I didn't post it for review; I believe I stumbled upon issues related to #22029 and never got around to recycling the parts that could be. It would probably be worth comparing our approaches and taking the best of both. I don't really have time for that right now (perhaps next week...), but I've pushed my commits to |
comment:10
I agree that removing |
comment:11
P.s. are you sure you pushed it?
And I don't seem to be able to find it between your other branches as listed on https://github.com/sagemath/sagetrac-mirror/branchesheads |
comment:12
Replying to @koffie:
Oops, looks like I didn't indeed. Thanks for the notice! |
comment:13
I disagree with the If you still feel like the best way forward is to remove the
Also, any I would also put the This might also be a good time to convert this from an old-style parent to new-style. |
comment:14
Replying to @tscrim:
Yes, I think removing the
What I mean by this is unrelated to performance issues, but more related to behaviour issues. In general one should not overwrite the
Yes I agree this is a good time to do this. What kind of things would be involved in this? I guess at least replacing this
in the |
comment:15
I looked a bit more into it. And I think that there is no nice way to git rid of So maybe I start being in favour of keeping the
|
comment:16
Yes, what I am advocating for is this: def __call__(self, x, im=None):
if im is None:
return super(ComplexIntervalField_class,self).__call__(x)
return complex_interval.ComplexIntervalFieldElement(self, (x, im)) For removing the old-style parent, from a quick look, it looks like the following needs to be done:
I am pretty sure you can use Sorry for the shorter responses and not contributing actual code right now, I'm in the process of moving. |
comment:17
Replying to @tscrim:
That was a little too brief. What I mean is that the |
comment:19
Ok I tried to address all your comments. Made a minor modification to |
Changed branch from u/mderickx/23739 to public/rings/conversions_to_CIF-23739 |
comment:20
Great, thank you. Looks good. A good followup will be making this use I added a little more documentation for
The rest of my changes are PEP8 and trivial formatting. If my changes look good, then positive review. New commits:
|
Reviewer: Travis Scrimshaw |
comment:21
many failing doctests |
comment:22
Most of them should be trivial, but there are a few I don't know what is going on without investigating. Maarten, would you be willing to make the first attempt? Also, I don't quite understand the change in |
comment:23
I'll try to fix this ticket instead in #24371. |
comment:24
Sorry for not following up on this ticket after my initial attempt, thanks for fixing it in #24371. I agree that this then can be seen as duplicate. |
comment:25
closing positively reviewed duplicates |
An issue found by Victor Spitzer:
Component: numerical
Author: Maarten Derickx
Branch/Commit: public/rings/conversions_to_CIF-23739 @
f2bc7fc
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/23739
The text was updated successfully, but these errors were encountered: