-
-
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
Change ring to QQbar fails for subschemes #20067
Comments
Branch: u/bhutz/ticket/20067 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Commit: |
comment:3
I added the embedding option for subschemes and made some other improvements to change_ring() in general to make it a little more robust. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: Rebecca Miller, Joseph Eisner |
Changed reviewer from Rebecca Miller, Joseph Eisner to Rebecca Lauren Miller, Joseph Eisner |
comment:7
Still doing functionality testing. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
changing the try/except to has_coerce_map_from reduced the functionality. For example QQ to GF(3) does not have a coerce map from, but can be done. Consequently, I only added the warning. |
comment:10
Can't we just make sure that
would work (provided we don't check if the map really is a homomorphism). |
comment:11
Not sure exactly what you are suggesting here. If it is just the ability to supply the mapping, then that is actually the main change here. There is now an optional
The remaining issue was what to do if not specified. In this case, one is attempted to be constructed (the try/except parts...). When this is not unique, you seem to be suggesting raising an error and having the user construct the particular map they want. It seemed more user friendly to me to simply choose one and provide a warning that happened. |
comment:12
Replying to @bhutz:
The problem is that we don't have a channel to reliably report warnings through. If you print them in places where people aren't particularly looking for output, they are easily missed. In fact, STDOUT might be redirected to /dev/null, and messages on STDERR might be hard to match up with the rest of the data (if it gets read at all). To quote the Zen of Python: "In the face of ambiguity, refuse the temptation to guess.". I'm not for following the Zen religiously, but I think it's a good principle. In this case, I think the error is a more honest and ultimately more reliable solution than making some non-canonical guess. |
comment:13
I understand the concern and definitely didn't want to silently guess, hence the verbose warning. However, there was some precedent since
just works and 'guesses' what embedding to use. However, if just raising an error is more in-line with similar other functionality, I can do that instead. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:15
on further looking, that wasn't a precedent since cyclotomic fields create an embedding by default as part of their creation. So here is a version where I've removed the 'guessing' |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:17
I don't like the embedding keyword syntax. I'm going to check this to accept passing the ring in. This is more compatible with the other existing change_ring functions. |
comment:21
Reviewer name is missing |
comment:22
I mean, Author name |
comment:23
I meant to set this to needs review. Added author. |
Author: Ben Hutz |
comment:24
Looks good to me! |
comment:25
Merge conflict, please merge in the latest beta... |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:28
Looks good to me. No error with new commits in the latest beta. |
Changed branch from u/bhutz/ticket/20067 to |
comment:30
What do you prefer: "Rebecca Lauren Miller" or "Rebecca Miller"? |
Changed commit from |
comment:31
Given that comment:6 was done by rlmiller, I would guess the "Lauren" version. |
comment:32
Yes, The Lauren Version. I will update all previous tickets. |
Change ring for subschemes does not let the user specify an embedding and so fails for QQbar
Component: algebraic geometry
Author: Ben Hutz
Branch:
e73cd1f
Reviewer: Rebecca Lauren Miller, Joseph Eisner
Issue created by migration from https://trac.sagemath.org/ticket/20067
The text was updated successfully, but these errors were encountered: