-
-
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
Implement conjugacy classes #7886
Comments
Implementation of a python class for conjugacy classes, wrapping some GAP functions and some native python methods. |
Attachment: conjugacy_classes.patch.gz Attachment: trac_7886_conjugacy_classes.patch.gz Conjugacy classes code |
comment:1
Patch submitted. All tests pass on my machine (OX-X 10.6.8) with the exception of the ConjugacyClass Testsuite, which fails testing equality. I have no idea how the testsuite works, so could use some help here. |
comment:2
For the patchbot: Apply trac_7886_conjugacy_classes.patch |
comment:3
Oops! Forgot to add the new module to the patch, here it is! |
comment:4
Apply trac_7886_conjugacy_classes_module.patch, trac_7886_conjugacy_classes.patch |
conjugacy_classes.py module with passing Testsuite |
comment:5
Attachment: trac_7886_conjugacy_classes_module.patch.gz Updated the conjugacy_classes.py module with the fixed |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:8
The code looks fine to me. I tested it on a 10.6.8 mac under sage-4.8.a3 and on a Ubuntu 10.04 (Lucid Lynx) machine under sage-4.8.a1. There was a discussion of cached methods in sage-devel, but I'm not sure how that relates to this ticket, so I'm giving this a positive review. Maybe changes, if any, from that thread can go in a separate ticket. |
This comment has been minimized.
This comment has been minimized.
comment:10
In the file |
Work Issues: PEP 0263 |
Fixed encoding and improvement of naive set method. |
comment:11
Attachment: trac_7886_conjugacy_classes_encoding_fix.patch.gz Sorry, I thought we were using utf-8 by default. Fixed the encoding in permgroup.py and conjugacy_classes.py |
Changed work issues from PEP 0263 to none |
This comment has been minimized.
This comment has been minimized.
comment:17
patchbot: apply trac_7886_conjugacy_classes_combined.patch |
comment:18
Hey, Thank you for working on this. However there are multiple docstring issues you will need to address. More specifically, you will need to change (for example)
to
otherwise the formatting will be incorrect (the convention is not to use bullet points for different examples). For a full description, see the conventions page. Also you will need to cleanup the patch's header message. Thanks, Travis |
comment:19
This patch needs to address referee's comments. I am changing this to |
comment:20
Thanks for looking at my patch! I have a complicated work situation during the week, but will fix the docstring style and rebase again over sage 5.7 on Friday or Saturday. Not sure what you mean about the patch header message. Do you mean the Spanish characters in my name? That is automatically added by my hg configuration, but it seems that trac does not support UTF-8; I added the appropriate encoding to the python files, but don't know how to do it for the patch (and don't feel inclined to change my name either). If it is about the cruft that came from patch folding, I will take care of that as well. Cheers, |
comment:21
Hey Javier, Replying to @sagetrac-jlopez:
Thank you! There's not a huge rush, just ping back when it's done and I'll give it a look-over.
If you look at the beginning of the patch, you have the following:
In particular, the line right after the Gracias por tu trabajo, Travis |
Changed reviewer from David Joyner to David Joyner, Travis Scrimshaw |
comment:22
I think I fixed all the docstring formatting. Also removed some trailing whitespaces and rebased over sage 5.7. Needs review. Patchbot apply trac_7886_conjugacy_classes_combined.patch |
comment:23
Hey Javier, There are still many misformatted docstrings (did you forget to refresh the patch?) and the examples are still itemized. Also remove the Thanks, Travis |
comment:24
Hi Travis, refreshed, fixed the itemized examples. My docbuild refuses to work due to the presence of UTF8 characters in the docstring:
Is there any way to tell sphinx to use the utf8 codec instead? I already included the
in the python file, but the docbuild seems to ignore that. |
Docstring and whitespaces fixes, rebased for sage 5.7. Apply this patch only. |
Attachment: trac_7886_conjugacy_classes_combined.patch.gz |
comment:25
Attachment: trac_7886-conjugacy_classes-review-ts.patch.gz Hey Javier, I've attaching a review patch which fixes up the remaining documentation and adds the files to the docbuild (I had to do some extra tweaks in the Thanks, Travis For patchbot: Apply: trac_7886_conjugacy_classes_combined.patch, trac_7886-conjugacy_classes-review-ts.patch |
This comment has been minimized.
This comment has been minimized.
comment:26
Hi Travis, your reviewer patch fails to apply for me:
Are we working over the same version of sage (I'm on 5.7), or did you apply any previous patches that changed documentation files? |
Dependencies: #6495 |
comment:28
Alright. WIth #6495 applied the reviewer patch applies and docs build properly. Tests pass, so I think this is good to go. |
comment:29
Patchbot seems confused about what needs to be applied, so here it goes again: Apply trac_7886_conjugacy_classes_combined.patch trac_7886-conjugacy_classes-review-ts.patch |
Merged: sage-5.8.beta2 |
comment:31
You shouldn't return lists from Also, |
GAP has several functions concerning conjugacy classes of groups. This patch include a wrapper for gap conjugacy classes for groups in which they are available and a (kind of) naive fallback method based on TransitiveIdeal for the remaining cases.
Apply:
Depends on #6495
CC: @wdjoyner @jdemeyer @sagetrac-jlopez
Component: group theory
Author: Javier López Peña
Reviewer: David Joyner, Travis Scrimshaw
Merged: sage-5.8.beta2
Issue created by migration from https://trac.sagemath.org/ticket/7886
The text was updated successfully, but these errors were encountered: