#19543: Adding a new collection to FindStat breaks the interface
-------------------------------------+-------------------------------------
Reporter: stumpc5 | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.10
Component: interfaces | Resolution:
Keywords: FindStat | Merged in:
Authors: Martin Rubey | Reviewers: Christian Stump
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/mantepse/develop | 3c1759329c7fef43cd96c75f0120de54c9f644b2
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by stumpc5):
Here is another problem to fix, but I rather think this is a problem in
!FindStat since there is neither a {{{JSON}}} json file for {{{St000288}}}
nor a {{{pdf}}}:
{{{
sage: findstat({l:l.length() for l in Partitions(4)})
---------------------------------------------------------------------------
IOError Traceback (most recent call
last)
...
IOError: FindStat did not answer with a json response: St000288 is not a
FindStat statistic identifier.
}}}
One quick idea: what about having a method {{{findstat.collections}}} such
that
{{{
sage: findstat.collections()
{'Binary words': 'not supported',
'Dyck paths': 'supported',
'Permutations': 'supported'}
}}}
and if an unsupported collection is used, we throw an error like the one
you have.
Good:
{{{
sage: findstat(289)
ValueError: Could not find FindStat collection for Binary words.
}}}
but unclear what to do in the above situation where a binary word
statistic is found and we cannot throw an error...
--
Ticket URL: <http://trac.sagemath.org/ticket/19543#comment:7>
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.