#19296: Generating function in FindStat interface
-------------------------------------+-------------------------------------
Reporter: stumpc5 | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.10
Component: packages: | Resolution:
optional | Merged in:
Keywords: FindStat, OEIS | Reviewers: Martin Rubey,
Authors: Christian Stump, | Christian Stump
Martin Rubey | Work issues: document
Report Upstream: N/A | Commit:
Branch: | fd221b7260bd2f9fdd5864619a8346daa71b3d59
u/mantepse/generating_function_in_findstat_interface| Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Changes (by vbraun):
* status: positive_review => needs_work
Comment:
Doctests must run without network access
{{{
sage -t --long src/sage/databases/findstat.py
**********************************************************************
File "src/sage/databases/findstat.py", line 486, in
sage.databases.findstat.FindStat.__call__
Failed example:
findstat("Permutations", 1)
Expected:
Traceback (most recent call last):
...
ValueError: The given arguments, Permutations and 1, cannot be used
for a FindStat search.
Got:
<BLANKLINE>
Traceback (most recent call last):
File
"/mnt/highperf/buildbot/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 496, in _run
self.compile_and_execute(example, compiler, test.globs)
File
"/mnt/highperf/buildbot/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.databases.findstat.FindStat.__call__[3]>", line
1, in <module>
findstat("Permutations", Integer(1))
File "sage/misc/lazy_import.pyx", line 383, in
sage.misc.lazy_import.LazyImport.__call__
(/mnt/highperf/buildbot/slave/sage_git/build/src/build/cythonized/sage/misc/lazy_import.c:3593)
return self._get_object()(*args, **kwds)
File
"/mnt/highperf/buildbot/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/databases/findstat.py", line 613, in __call__
(collection, to_str) = get_collection(None, query_1)
File
"/mnt/highperf/buildbot/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/databases/findstat.py", line 515, in get_collection
collection = FindStatCollection(element)
File "sage/misc/classcall_metaclass.pyx", line 326, in
sage.misc.classcall_metaclass.ClasscallMetaclass.__call__
(/mnt/highperf/buildbot/slave/sage_git/build/src/build/cythonized/sage/misc/classcall_metaclass.c:1239)
return cls.classcall(cls, *args, **kwds)
File
"/mnt/highperf/buildbot/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/databases/findstat.py", line 1861, in __classcall_private__
return FindStatCollections()(entry)
File "sage/misc/classcall_metaclass.pyx", line 326, in
sage.misc.classcall_metaclass.ClasscallMetaclass.__call__
(/mnt/highperf/buildbot/slave/sage_git/build/src/build/cythonized/sage/misc/classcall_metaclass.c:1239)
return cls.classcall(cls, *args, **kwds)
File "sage/misc/cachefunc.pyx", line 1304, in
sage.misc.cachefunc.WeakCachedFunction.__call__
(/mnt/highperf/buildbot/slave/sage_git/build/src/build/cythonized/sage/misc/cachefunc.c:8470)
w = self.f(*args, **kwds)
File
"/mnt/highperf/buildbot/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/structure/unique_representation.py", line 1021, in
__classcall__
instance = typecall(cls, *args, **options)
File "sage/misc/classcall_metaclass.pyx", line 493, in
sage.misc.classcall_metaclass.typecall
(/mnt/highperf/buildbot/slave/sage_git/build/src/build/cythonized/sage/misc/classcall_metaclass.c:1665)
return (<PyTypeObject*>type).tp_call(cls, args, kwds)
File
"/mnt/highperf/buildbot/slave/sage_git/build/local/lib/python2.7/site-
packages/sage/databases/findstat.py", line 2357, in __init__
for j in json.load(urlopen(FINDSTAT_URL_DOWNLOADS_COLLECTIONS)):
File
"/mnt/highperf/buildbot/slave/sage_git/build/local/lib/python/urllib2.py",
line 154, in urlopen
return opener.open(url, data, timeout)
File
"/mnt/highperf/buildbot/slave/sage_git/build/local/lib/python/urllib2.py",
line 431, in open
response = self._open(req, data)
File
"/mnt/highperf/buildbot/slave/sage_git/build/local/lib/python/urllib2.py",
line 449, in _open
'_open', req)
File
"/mnt/highperf/buildbot/slave/sage_git/build/local/lib/python/urllib2.py",
line 409, in _call_chain
result = func(*args)
File
"/mnt/highperf/buildbot/slave/sage_git/build/local/lib/python/urllib2.py",
line 1227, in http_open
return self.do_open(httplib.HTTPConnection, req)
File
"/mnt/highperf/buildbot/slave/sage_git/build/local/lib/python/urllib2.py",
line 1197, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 110] Connection timed out>
**********************************************************************
1 item had failures:
1 of 6 in sage.databases.findstat.FindStat.__call__
[54 tests, 1 failure, 127.29 s]
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/19296#comment:111>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.