* cc: sage-combinat (added)
* status: needs_work => needs_review
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8500#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, and MATLAB
* status: needs_review => needs_work
* author: => Nicolas Borie
Comment:
Wow,that was quick, thanks!
I browsed through the patch, which looks good. Some minor comments before
I do the final review:
- Change "trac 8500 Add the finite enumerated set of TransitiveGroups" to
"#8500 Add the enumerated set of TransitiveGroups"
- Keep number_of_transitive_groups a private function (i.e. not in
all.py)
- TransitiveGroups() would better model the mathematical set of all
transitive groups, even if this is only partially implemented. Hence
TransitiveGroups() should be in InfiniteEnumeratedSets (and therefore
TransitiveGroups().cardinality() will return infinity). As a side effect,
the #long time should not be needed anymore for the
TestSuite(TransitiveGroups()).run().
- You may actually want to implement TransitiveGroups() as a
DisjointUnionOfEnumeratedSets, which should essentially do all the work
for you.
-
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8500#comment:5>
Comment(by nborie):
Hi,
* Commit message : will do!
* Private function : Why not? There is no reference page built for
permgroup_named.py... It will be used by the very private club...
* Ok, Do you prefer a StopIteration or a NotImplementedError for the
__iter__ method ?
* DisjointUnionOfEnumeratedSets????? I don't know this toy but I already
like the name. Will play with it (and hope it is robust (like children,
when I play....))
Thanks for these advises...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8500#comment:6>
Comment(by nthiery):
Replying to [comment:6 nborie]:
> * Ok, Do you prefer a StopIteration or a NotImplementedError for the
__iter__ method ?
Hmm, I guess NotImplementedError. And I assume that should be what occurs
by default with DisjointUnionOfEnumeratedSets.
>
> * DisjointUnionOfEnumeratedSets????? I don't know this toy but I already
like the name. Will play with it (and hope it is robust (like children,
when I play....))
Note: you'll have a micro-issue with classcall, which Florent is supposed
to fix shortly (he stumbled into it yesterday.
Oh, by the way: what gap is providing you is actually an unrank function
(see enumeratedSets). You just need to implement
TransitiveGroups(3).unrank(5), and __iter__ will be provided to you for
free.
> Thanks for these advises...
You are welcome!
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8500#comment:7>
* status: needs_work => needs_review
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8500#comment:8>
Comment(by nborie):
I included all yours recommendations. I just didn't remove the # long time
for the test :
TestSuite(TransitiveGroups()).run()
Even it is now an Infinite Enumerated Set, the test still need around 20
seconds.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8500#comment:9>
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8500#comment:10>
--
Comment(by nborie):
I just update the patch : I forgot some # optional. Done..
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8500#comment:11>
* status: needs_work => needs_review
Comment:
I asked Jason Grout via IRC to test #8500 and #8549 on
hyperelliptic_finite_field.py with OSX 10.6 and the file passed tests.
Slightly edited IRC discussion.
{{{
[21:34] <rbeezer> jason-: ping
[21:34] <jason-> pong
[21:35] <rbeezer> could you do a simple OSX 10.6 test?
[21:35] <rbeezer> #8500, #8549, apply one patch from each, then
[21:35] <rbeezer> sage -t -long
"devel/sage/sage/schemes/hyperelliptic_curves/hyperelliptic_finite_field.py"
[21:35] <rbeezer> ???
[21:36] <jason-> Let me see
[21:37] <rbeezer> thanks - this particular combo is holding up both
tickets
[21:39] <jason-> all tests passed!
[21:40] <rbeezer> thanks
[21:41] <jason-> rbeezer: that's osx 10.6
}}}
Same combination passed all long tests on 64-bit Ubuntu 9.04, in addition
to the one file passing tests for Mike Hansen.
I ran long tests on
{{{devel/sage/sage/groups/perm_gps/permgroup_named.py}}} with the gap
database installed and it all passed tests.
Given that this seemed ready for a positive review and now passes tests on
the OSX combination, I am going to set this to positive review and add
Jason to the reviewer list.
Rob
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8500#comment:20>
* status: needs_review => positive_review
* reviewer: Nicolas M. Thiéry => Nicolas M. Thiéry, Jason Grout
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8500#comment:21>
Comment(by nthiery):
I just tried on bsd.sagemath.org, with 4.4.2 and just those two patches,
and all test pass as well.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8500#comment:22>
* status: positive_review => closed
* resolution: => fixed
* merged: => sage-4.4.4.alpha0
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8500#comment:23>