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

Commit

Permalink
Revert with_basis/morphism.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
tscrim committed Aug 8, 2022
1 parent a325339 commit c01586d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/modules/with_basis/morphism.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@ def __call__(self, *args):
if self._is_module_with_basis_over_same_base_ring:
return self.codomain().linear_combination(
(self._on_basis(*(before+(index,)+after)), coeff )
for (index, coeff) in mc.items() if self._on_basis(index))
for (index, coeff) in mc.items())
else:
return sum((coeff * self._on_basis(*(before+(index,)+after))
for (index, coeff) in mc.items() if self._on_basis(index)), self._zero)
for (index, coeff) in mc.items()), self._zero)

# As per the specs of Map, we should in fact implement _call_.
# However we currently need to abuse Map.__call__ (which strict
Expand Down

0 comments on commit c01586d

Please sign in to comment.