sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.4k stars 473 forks source link

17 internet doctest failing in findstat.py #28864

Closed seblabbe closed 4 years ago

seblabbe commented 4 years ago

findstat.org has now a proper api. In this ticket we switch to this api, and create a hierarchy of classes that better models what findstat provides.

In particular, this allows search for maps, iterating over all statistics or maps with given domain, easier access to search for distributions, etc.

Restricted to the capabilities of the old interface, the usage remains the same.

We also fix all the failing doctest.

Original ticket description

Using SageMath version 9.2.beta2, Release Date: 2020-06-26, the command

sage -t --optional=sage,internet src/sage/databases/findstat.py

gives

**********************************************************************
7 items had failures:
   4 of  16 in sage.databases.findstat
   3 of  10 in sage.databases.findstat.FindStat
   1 of  11 in sage.databases.findstat.FindStat.__call__
   1 of  10 in sage.databases.findstat.FindStatCollection.in_range
   3 of   5 in sage.databases.findstat.FindStatStatistic.first_terms
   3 of   5 in sage.databases.findstat.FindStatStatistic.generating_functions
   2 of   4 in sage.databases.findstat.FindStatStatistic.oeis_search
    [249 tests, 17 failures, 41.24 s]
----------------------------------------------------------------------
sage -t src/sage/databases/findstat.py  # 17 doctests failed
----------------------------------------------------------------------

CC: @mantepse @stumpc5

Component: combinatorics

Keywords: FindStat

Author: Martin Rubey

Branch/Commit: 52c576e

Reviewer: Sébastien Labbé

Issue created by migration from https://trac.sagemath.org/ticket/28864

fchapoton commented 4 years ago
comment:1

any idea of what the problem could be ? some problem for empty shape, maybe ?

mantepse commented 4 years ago
comment:2

Essentially the problem is (very very likely) that there is a new collection on findstat.org (skew partitions), which is not reflected in the sage interface (yet).

Very unfortunately, findstat.org itself has (technical) problems which I was unable to resolve so far.

On top of that, investing time into the old code is going to delay the deployment of the new and shiny and proper api for the website even further, although it is almost done (since an embarassingly long time).

One way to speed up the process would be to decide to drop support for the old way to access findstat completely. This would mean that, that I would switch findstat.org and the sage interface to the new api simultaneously, and that old versions of sage could not use findstat anymore. I doubt that this is a very good idea, but it is a possibility.

mantepse commented 4 years ago
comment:3

a brief update:

In the meantime, the sage interface should be fully functional.

embray commented 4 years ago
comment:4

Ticket retargeted after milestone closed

mantepse commented 4 years ago

Branch: u/mantepse/1_internet_doctest_failing_in_findstat_py

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

eb29c9ebegin fixing doctests, add some more infrastructure
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Commit: eb29c9e

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

d1b2f29make all statistics by domain accessible via findstat
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from eb29c9e to d1b2f29

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from d1b2f29 to 696e79d

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

696e79dmake cache for statistics global
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

5070c5ffix iterating over maps and statistics, fix doctests
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from 696e79d to 5070c5f

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

64b685cfix and improve argument parsing in findmap
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from 5070c5f to 64b685c

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from 64b685c to b5ad6e9

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

b5ad6e9fix 3rd positional argument for findmap, fix doctests for offline
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from b5ad6e9 to 243d0b8

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

243d0b8make tab completion work
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from 243d0b8 to 725e6a3

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

725e6a3doc fixes
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

e7c68c4py3 fixes
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from 725e6a3 to e7c68c4

stumpc5 commented 4 years ago
comment:15

Here are some first comments:

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from e7c68c4 to 503bd29

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

503bd29documentation improvements, new method info for matches
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

8e3f237minor doc fixes
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from 503bd29 to 8e3f237

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

0f1642brestructure to provide generating functions also for compound statistics
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from 8e3f237 to 0f1642b

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from 0f1642b to 817cb84

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

817cb84better separation of concerns, add docstrings
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from 817cb84 to 80736f2

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

80736f2fix a few bugs
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

bfffe26restrict doctests to fewer statistics, fix handling of None as value, improve call
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from 80736f2 to bfffe26

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

9a144f2submit only FINDSTAT_MAX_SUBMISSION_VALUES values, refactor function to get source
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from bfffe26 to 9a144f2

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

e786fbeprovide more doctests
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from 9a144f2 to e786fbe

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from e786fbe to 4a84e3f

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

e1b20faMerge branch 'develop' into t/28864/1_internet_doctest_failing_in_findstat_py
ccfddb6Merge branch 'u/mantepse/1_internet_doctest_failing_in_findstat_py' of git://trac.sagemath.org/sage into t/28864/1_internet_doctest_failing_in_findstat_py
4a84e3fuse requests.get instead of urlopen, refactor FindStatStatisticQuery._generating_functions_dict
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from 4a84e3f to da59574

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

da59574try to fix unicode/py2/py3 issues
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

3a0f0d6provide remaining doctests
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from da59574 to 3a0f0d6

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

5d2cce4fix isinstance for Semistandard tableaux, add signed permutations, fix doctests
7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 4 years ago

Changed commit from 3a0f0d6 to 5d2cce4

mantepse commented 4 years ago

Author: Martin Rubey

mantepse commented 4 years ago

Changed keywords from none to FindStat