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

Commit

Permalink
FiniteRankFreeModule_abstract: No need for _output_formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Aug 25, 2022
1 parent ac6d465 commit 7e3ae02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
6 changes: 2 additions & 4 deletions src/sage/tensor/modules/ext_pow_free_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,7 @@ def __init__(self, fmodule, degree, name=None, latex_name=None):
latex_name = r'\Lambda^{' + str(degree) + r'}\left(' \
+ fmodule._latex_name + r'\right)'
super().__init__(fmodule._ring, rank,
name=name, latex_name=latex_name,
output_formatter=fmodule._output_formatter)
name=name, latex_name=latex_name)
fmodule._all_modules.add(self)

#### Parent methods
Expand Down Expand Up @@ -648,8 +647,7 @@ def __init__(self, fmodule, degree, name=None, latex_name=None):
latex_name = r'\Lambda^{' + str(degree) + r'}\left(' \
+ fmodule._latex_name + r'^*\right)'
super().__init__(fmodule._ring, rank, name=name,
latex_name=latex_name,
output_formatter=fmodule._output_formatter)
latex_name=latex_name)
fmodule._all_modules.add(self)

#### Parent methods
Expand Down
4 changes: 1 addition & 3 deletions src/sage/tensor/modules/finite_rank_free_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,6 @@ def __init__(
rank,
name=None,
latex_name=None,
output_formatter=None,
category=None,
):
r"""
Expand Down Expand Up @@ -585,7 +584,6 @@ def __init__(
self._latex_name = self._name
else:
self._latex_name = latex_name
self._output_formatter = output_formatter

def _latex_(self):
r"""
Expand Down Expand Up @@ -954,9 +952,9 @@ def __init__(
"""
super().__init__(ring, rank, name=name, latex_name=latex_name,
output_formatter=output_formatter,
category=category)
self._sindex = start_index
self._output_formatter = output_formatter
# Dictionary of the tensor modules built on self
# (keys = (k,l) --the tensor type)
# This dictionary is to be extended on need by the method tensor_module
Expand Down
4 changes: 1 addition & 3 deletions src/sage/tensor/modules/tensor_free_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,7 @@ def __init__(self, fmodule, tensor_type, name=None, latex_name=None):
if latex_name is None and fmodule._latex_name is not None:
latex_name = r'T^{' + str(self._tensor_type) + r'}\left(' + \
fmodule._latex_name + r'\right)'
super().__init__(fmodule._ring, rank, name=name,
latex_name=latex_name,
output_formatter=fmodule._output_formatter)
super().__init__(fmodule._ring, rank, name=name, latex_name=latex_name)
fmodule._all_modules.add(self)

#### Parent Methods
Expand Down

0 comments on commit 7e3ae02

Please sign in to comment.