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
Add subgroup method to MatrixGroup_base #25894
Comments
comment:2
I add the With respect to the New commits:
|
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:4
Sorry for letting this ticket drop off my radar. Some comments:
|
comment:5
Replying to @tscrim:
No problem (I know you have a long list)!
I've learned that in the meantime! Sorry, for not revising this ticket, any more!
Sorry! I should read the PEP8 more often, since much of it is contrary to what I am used to. You will find such things in #27302, as well. Please wait with that ticket until I have fixed them. But there are conventions in PEP8, the purpose of which I really don't understand. For example that about blanklines. IMO that reduces readability of the code. If you kwow a reason, please let me know. That would make it more easier to follow this convention.
I inserted the block, since I was not sure if I should change the previous behaviour that much. Removing that block will change the representation string of subgroups of finite groups, as well. Of course, it will be improved:
If you agree I will remove the block and fix all that doctests. But, will this be o.K. for external code (packages,..), as well? |
comment:6
Replying to @soehms:
No problem. I think it is fine to wait for a review before making such changes anyways.
They are guidelines, so no need to follow them exactly. Use your judgement to what you think makes the code the most readable (including consistency with other code in Sage).
I think it is good for those tests to change as it gives more information about the groups in question and are otherwise trivial changes. So +1 to the change in behavior. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
I had a thought/question. I think we should consider putting the generators of the subgroup first then the ambient group after it in the repr. Maybe something like
That way the most pertinent information is first and it is a little easier to parse. What do you think? Also, some little details more:
should be What type of error are you expecting here:
It is better to be explicit about what errors you want to handle.
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
Replying to @tscrim:
I agree! The reason why I choose it that way was to be consistent with
Sorry again, I was sure to have those things fixed, but unfortunately I've lost them since my nice mint coloured |
comment:12
Replying to @soehms:
Yes, and yes please. (I should note that it is somewhat awkward English, so that might be why
No problem. I am sorry to hear about your computer, but I am glad you are okay. |
Reviewer: Travis Scrimshaw |
comment:14
One last little thing: could you change the doctests in the
Once all of those are changed, you can set this to a positive review. Rob, I am cc-ing you since you were the one who originally added these book tests. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:16
Thanks for the review, Travis! |
Changed branch from u/soehms/matrix_groups_subgroups-25894 to |
Only for those matrix groups which are inherited from ParentLibGAP a
subgroup
method is available. But for other matrix groups such as classical groups over rings other than finite fields or ZZ this makes sense as well.Example:
CC: @tscrim @rbeezer
Component: group theory
Keywords: subgroup, ambient, matrix groups
Author: Sebastian Oehms
Branch/Commit:
c1280b9
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/25894
The text was updated successfully, but these errors were encountered: