118
118
advertise yet another way to pass values to FindStat::
119
119
120
120
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])
122
123
...
123
124
124
125
Note that some of the matches are up to a global offset. For
125
126
example, we have::
126
127
127
- sage: r[0 ].info() # optional -- internet
128
+ sage: r[1 ].info() # optional -- internet
128
129
after adding 1 to every value
129
130
and applying
130
131
Mp00087: inverse first fundamental transformation: Permutations -> Permutations
@@ -431,10 +432,10 @@ def _get_json(url, **kwargs):
431
432
EXAMPLES::
432
433
433
434
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
435
436
Traceback (most recent call last):
436
437
...
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']
438
439
"""
439
440
response = requests .get (url )
440
441
if response .ok :
@@ -454,10 +455,10 @@ def _post_json(url, data, **kwargs):
454
455
EXAMPLES::
455
456
456
457
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
458
459
Traceback (most recent call last):
459
460
...
460
- ValueError: E005: On filtering statistics, the following parameters are not allowed : ['xxx'].
461
+ ValueError: E018: Unknown fields in Statistic, Combinatorial statistic: St000001 : ['yyy']
461
462
"""
462
463
response = requests .post (url , data = data )
463
464
if response .ok :
0 commit comments