Skip to content

Commit f9129b1

Browse files
author
Release Manager
committed
Trac #34531: some details in LS paths crystals
just a few ones, not a complete cleanup URL: https://trac.sagemath.org/34531 Reported by: chapoton Ticket author(s): Frédéric Chapoton Reviewer(s): Travis Scrimshaw
2 parents 7f7088d + 0cb07df commit f9129b1

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

src/sage/combinat/crystals/littelmann_path.py

+12-13
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- Travis Scrimshaw (2016): Implemented
1010
:class:`~sage.combinat.crystals.littelmann_path.InfinityCrystalOfLSPaths`
1111
"""
12-
#****************************************************************************
12+
# ***************************************************************************
1313
# Copyright (C) 2012 Mark Shimozono
1414
# Anne Schilling
1515
#
@@ -22,8 +22,8 @@
2222
#
2323
# The full text of the GPL is available at:
2424
#
25-
# http://www.gnu.org/licenses/
26-
#****************************************************************************
25+
# https://www.gnu.org/licenses/
26+
# ***************************************************************************
2727

2828
from sage.misc.cachefunc import cached_in_parent_method, cached_method
2929
from sage.structure.unique_representation import UniqueRepresentation
@@ -147,10 +147,7 @@ def __classcall_private__(cls, starting_weight, cartan_type = None, starting_wei
147147
"""
148148
if cartan_type is not None:
149149
cartan_type, starting_weight = CartanType(starting_weight), cartan_type
150-
if cartan_type.is_affine():
151-
extended = True
152-
else:
153-
extended = False
150+
extended = cartan_type.is_affine()
154151

155152
R = RootSystem(cartan_type)
156153
P = R.weight_space(extended = extended)
@@ -333,7 +330,7 @@ def split_step(self, which_step, r):
333330
sage: b.split_step(0,1/3)
334331
(1/3*Lambda[1] + 1/3*Lambda[2], 2/3*Lambda[1] + 2/3*Lambda[2])
335332
"""
336-
assert 0 <= which_step and which_step <= len(self.value)
333+
assert 0 <= which_step <= len(self.value)
337334
v = self.value[which_step]
338335
return self.parent()(self.value[:which_step] + (r*v,(1-r)*v) + self.value[which_step+1:])
339336

@@ -476,7 +473,7 @@ def e(self, i, power=1, to_string_end=False, length_only=False):
476473

477474
ix = len(data)-1
478475
while ix >= 0 and data[ix][1] < M + p:
479-
# get the index of the current step to be processed
476+
# get the index of the current step to be processed
480477
j = data[ix][0]
481478
# find the i-height where the current step might need to be split
482479
if ix == 0:
@@ -621,7 +618,7 @@ def _latex_(self):
621618

622619

623620
#####################################################################
624-
## Projected level-zero
621+
# Projected level-zero
625622

626623

627624
class CrystalOfProjectedLevelZeroLSPaths(CrystalOfLSPaths):
@@ -1144,7 +1141,9 @@ def energy_function(self):
11441141
Wd = WeylGroup(cartan_dual, prefix='s', implementation="permutation")
11451142
G = Wd.quantum_bruhat_graph(J)
11461143
Qd = RootSystem(cartan_dual).root_lattice()
1147-
dualize = lambda x: Qv.from_vector(x.to_vector())
1144+
1145+
def dualize(x):
1146+
return Qv.from_vector(x.to_vector())
11481147
L = [Wd.from_reduced_word(x.reduced_word()) for x in L]
11491148

11501149
def stretch_short_root(a):
@@ -1177,7 +1176,7 @@ def stretch_short_root(a):
11771176

11781177

11791178
#####################################################################
1180-
## B(\infty)
1179+
# B(\infty)
11811180

11821181

11831182
class InfinityCrystalOfLSPaths(UniqueRepresentation, Parent):
@@ -1464,7 +1463,7 @@ def phi(self,i):
14641463

14651464

14661465
#####################################################################
1467-
## Helper functions
1466+
# Helper functions
14681467

14691468

14701469
def positively_parallel_weights(v, w):

0 commit comments

Comments
 (0)