Skip to content

Commit 1208b95

Browse files
committed
adapt doctests to new website
1 parent 90655c7 commit 1208b95

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/sage/databases/findstat.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,14 @@
118118
advertise yet another way to pass values to FindStat::
119119
120120
sage: r = findstat(Permutations, lambda pi: pi.saliances()[0], depth=2); r # optional -- internet
121-
0: St000740oMp00087 with offset 1 (quality [100, 100])
121+
0: St000740oMp00066 with offset 1 (quality [100, 100])
122+
1: St000740oMp00087 with offset 1 (quality [100, 100])
122123
...
123124
124125
Note that some of the matches are up to a global offset. For
125126
example, we have::
126127
127-
sage: r[0].info() # optional -- internet
128+
sage: r[1].info() # optional -- internet
128129
after adding 1 to every value
129130
and applying
130131
Mp00087: inverse first fundamental transformation: Permutations -> Permutations
@@ -431,10 +432,10 @@ def _get_json(url, **kwargs):
431432
EXAMPLES::
432433
433434
sage: from sage.databases.findstat import _get_json, FINDSTAT_API_MAPS
434-
sage: _get_json(FINDSTAT_API_MAPS + "?xxx=yyy") # optional -- internet
435+
sage: _get_json(FINDSTAT_API_MAPS + "?fields=yyy") # optional -- internet
435436
Traceback (most recent call last):
436437
...
437-
ValueError: E005: On filtering maps, the following parameters are not allowed: [u'xxx'].
438+
ValueError: E018: Unknown fields in Map, Combinatorial map: to semistandard tableau via monotone triangles: ['yyy']
438439
"""
439440
response = requests.get(url)
440441
if response.ok:
@@ -454,10 +455,10 @@ def _post_json(url, data, **kwargs):
454455
EXAMPLES::
455456
456457
sage: from sage.databases.findstat import _post_json, FINDSTAT_API_STATISTICS
457-
sage: _post_json(FINDSTAT_API_STATISTICS, {"xxx": "yyy"}) # optional -- internet
458+
sage: _post_json(FINDSTAT_API_STATISTICS, {"fields": "yyy"}) # optional -- internet
458459
Traceback (most recent call last):
459460
...
460-
ValueError: E005: On filtering statistics, the following parameters are not allowed: ['xxx'].
461+
ValueError: E018: Unknown fields in Statistic, Combinatorial statistic: St000001: ['yyy']
461462
"""
462463
response = requests.post(url, data=data)
463464
if response.ok:

0 commit comments

Comments
 (0)