You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IntegerVectorsModPermutationGroup elements are generated recursively
along a search tree. Alas, the map_reduce feature of RecursivelyEnumeratedSets/SearchForest is broken:
sage: G = CyclicPermutationGroup(5)
sage: V = IntegerVectorsModPermutationGroup(G)
sage: V.map_reduce(lambda x: 1, operator.add, 0)
...
AttributeError: 'IntegerVectorsModPermutationGroup_All_with_category'
object has no attribute '_roots'
That seems to be because the SearchForest structure in V is not fully
initialized, or alternatively SearchForest and RESetMapReduce don't
quite agree on the API to recover the roots: f.roots() or f._roots.
Let's fix that for now:
sage: V._roots = V.roots()
Still does not work:
sage: V.map_reduce(lambda x: 1, operator.add, 0)
Process RESetMapReduceWorker-4:
Traceback (most recent call last):
...
assert max(self) <= self.parent()._max_part,
'Entries of %s must be inferiors to %s'%(self, self.parent()._max_part)
...
Plausibly that's because the postprocessing is not initialized
properly; so internal nodes in the trees get converted into end
results when they should not.
IntegerVectorsModPermutationGroup
elements are generated recursivelyalong a search tree. Alas, the
map_reduce
feature ofRecursivelyEnumeratedSets/SearchForest
is broken:That seems to be because the
SearchForest
structure inV
is not fullyinitialized, or alternatively
SearchForest
andRESetMapReduce
don'tquite agree on the API to recover the roots:
f.roots()
orf._roots
.Let's fix that for now:
Still does not work:
Plausibly that's because the postprocessing is not initialized
properly; so internal nodes in the trees get converted into end
results when they should not.
CC: @hivert @sagetrac-nborie @seblabbe @slel
Component: combinatorics
Issue created by migration from https://trac.sagemath.org/ticket/22184
The text was updated successfully, but these errors were encountered: