#13742: No Permutation should be created that its method cannot handle
---------------------------------+------------------------------------------
Reporter: ncohen | Owner: sage-combinat
Type: defect | Status: needs_work
Priority: major | Milestone: sage-5.6
Component: combinatorics | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Nathann Cohen | Merged in:
Dependencies: | Stopgaps:
---------------------------------+------------------------------------------
Changes (by dimpase):
* status: needs_review => needs_work
Comment:
in the
[http://patchbot.sagemath.org/log/13742/Fedora/17/x86_64/3.6.6-1.fc17.x86_64
/volker-desktop.stp.dias.ie/2012-11-24%2009:53:37%20+0000?short output of
Volker's patchbot] you will see
{{{
sage -t -force_lib devel/sage-13742/sage/graphs/comparability.pyx
[?1034h**********************************************************************
File
"/mnt/storage2TB/patchbot/Sage/sage-5.5.rc0/devel/sage-13742/sage/graphs/comparability.pyx",
line 610:
sage: p1, p2 = map(Permutation, perm)
Exception raised:
Traceback (most recent call last):
File
"/mnt/storage2TB/patchbot/Sage/sage-5.5.rc0/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/mnt/storage2TB/patchbot/Sage/sage-5.5.rc0/local/bin/sagedoctest.py",
line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/mnt/storage2TB/patchbot/Sage/sage-5.5.rc0/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_5[8]>", line 1, in <module>
p1, p2 = map(Permutation, perm)###line 610:
sage: p1, p2 = map(Permutation, perm)
File "/mnt/storage2TB/patchbot/Sage/sage-5.5.rc0/local/lib/python
/site-packages/sage/combinat/permutation.py", line 296, in Permutation
return Permutation_class(l, check_input = check_input)
File "/mnt/storage2TB/patchbot/Sage/sage-5.5.rc0/local/lib/python
/site-packages/sage/combinat/permutation.py", line 339, in __init__
raise ValueError("The elements must be strictly positive
integers.")
ValueError: The elements must be strictly positive integers.
**********************************************************************
}}}
(and, in fact, there are 0s there, the permutations are permuting numbers
from 0 to n-1 rather than from 1 to n there.)
Also, in {{{sage.graphs.comparability}}} the function is_permutation does
not fly together with Permutation.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13742#comment:14>
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.