Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac 22779 undo change in simplicial set morphism
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Chapoton committed Apr 7, 2017
1 parent bd4921e commit 0d3b15a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/homology/simplicial_set_morphism.py
Expand Up @@ -484,7 +484,7 @@ def __init__(self, data=None, domain=None, codomain=None,
if constant is not None:
self._constant = constant
check = False
data = {sigma: constant.apply_degeneracies(*list(range(sigma.dimension()-1,-1,-1)))
data = {sigma: constant.apply_degeneracies(*range(sigma.dimension()-1,-1,-1))
for sigma in domain.nondegenerate_simplices()}

if (not isinstance(domain, SimplicialSet_arbitrary)
Expand Down Expand Up @@ -635,7 +635,7 @@ def __call__(self, x):
raise ValueError('element is not a simplex in the domain')
if self.is_constant():
target = self._constant
return target.apply_degeneracies(*list(range(x.dimension()-1,-1,-1)))
return target.apply_degeneracies(*range(x.dimension()-1, -1, -1))
if self._is_identity:
return x
return self._dictionary[x.nondegenerate()].apply_degeneracies(*x.degeneracies())
Expand Down

0 comments on commit 0d3b15a

Please sign in to comment.