Skip to content

Commit d819017

Browse files
committed
small changes to custom names
1 parent 08ddad9 commit d819017

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

src/sage/algebras/letterplace/free_algebra_letterplace.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ cdef class FreeAlgebra_letterplace(Algebra):
2929
cdef int _ngens
3030
cdef int _nb_slackvars
3131
cdef object __monoid
32-
cdef public object _custom_name
3332
cdef str exponents_to_string(self, E)
3433
cdef str exponents_to_latex(self, E)
3534
cdef tuple _degrees

src/sage/categories/hopf_algebras_with_basis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class HopfAlgebrasWithBasis(CategoryWithAxiom_over_base_ring):
3636
sage: A = C.example(); A # needs sage.groups
3737
An example of Hopf algebra with basis: the group algebra of the
3838
Dihedral group of order 6 as a permutation group over Rational Field
39-
sage: A._custom_name = "A" # needs sage.groups
39+
sage: A.rename("A") # needs sage.groups
4040
sage: A.category() # needs sage.groups
4141
Category of finite dimensional hopf algebras with basis over Rational Field
4242

src/sage/categories/modules_with_basis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class ModulesWithBasis(CategoryWithAxiom_over_base_ring):
6666
6767
Let `X` and `Y` be two modules with basis. We can build `Hom(X,Y)`::
6868
69-
sage: X = CombinatorialFreeModule(QQ, [1,2]); X._custom_name = "X" # needs sage.modules
70-
sage: Y = CombinatorialFreeModule(QQ, [3,4]); Y._custom_name = "Y" # needs sage.modules
69+
sage: X = CombinatorialFreeModule(QQ, [1,2]); X.rename("X") # needs sage.modules
70+
sage: Y = CombinatorialFreeModule(QQ, [3,4]); Y.rename("Y") # needs sage.modules
7171
sage: H = Hom(X, Y); H # needs sage.modules
7272
Set of Morphisms from X to Y
7373
in Category of finite dimensional vector spaces with basis over Rational Field

src/sage/combinat/cluster_complex.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,6 @@ def __init__(self, W, k, coxeter_element, algorithm):
222222
self._W = W
223223
self._w0 = w
224224
self._k = k
225-
if k == 1:
226-
self._name = 'Cluster complex'
227-
else:
228-
self._name = 'Multi-cluster complex'
229225

230226
self.set_immutable()
231227

@@ -271,7 +267,10 @@ def _repr_(self):
271267
sage: ClusterComplex(['A', 2])._repr_()
272268
"Cluster complex of type ['A', 2] with 5 vertices and 5 facets"
273269
"""
274-
name = self._name
270+
if k == 1:
271+
name = 'Cluster complex'
272+
else:
273+
name = 'Multi-cluster complex'
275274
name += (' of type %s with %s vertices and %s facets'
276275
% (self.cartan_type(), len(self.vertices()),
277276
len(self._facets)))

src/sage/combinat/subword_complex.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,6 @@ def __init__(self, Q, w, algorithm="inductive"):
11311131
SimplicialComplex.__init__(self, maximal_faces=Fs,
11321132
maximality_check=False,
11331133
category=cat)
1134-
self._name = 'Subword complex'
11351134
self._W = W
11361135
try:
11371136
T = W.coxeter_matrix().coxeter_type()

0 commit comments

Comments
 (0)