#12610: Implementation of Baxter permutations
-----------------------------+----------------------------------------------
Reporter: giraudo | Owner: sage-combinat
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: combinatorics | Keywords: Permutations; Baxter
permutations
Work_issues: | Upstream: N/A
Reviewer: | Author: Samuele Giraudo
Merged: | Dependencies:
-----------------------------+----------------------------------------------
Comment(by nthiery):
Replying to [comment:2 giraudo]:
> 1) To use in Sage the implemented class BaxterPermutations, I have to
execute
> {{{
> from sage.combinat.permutation import BaxterPermutations
> }}}
> How can I ensure that the class is directly visible?
See sage/combinat/all.py
(a separate question is whether we want to import this by default)
> 2) The command
> {{{
> TestSuite(BaxterPermutations(3)).run()
> }}}
> returns, among other,
> {{{
> The following tests failed: _test_an_element,
_test_enumerated_set_iter_cardinality
> }}}
> How can I fix this?
Try:
{{{
sage: P = BaxterPermutations(3)
sage: P._test_an_element()
}}}
And see the specific error message. {{{import pdb; pdb.pm()}}} is your
friend too to examine the stack trace. See also {{{TestSuite?}}} for
debugging tips.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12610#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.