|
9 | 9 | - Travis Scrimshaw (2016): Implemented
|
10 | 10 | :class:`~sage.combinat.crystals.littelmann_path.InfinityCrystalOfLSPaths`
|
11 | 11 | """
|
12 |
| -#**************************************************************************** |
| 12 | +# *************************************************************************** |
13 | 13 | # Copyright (C) 2012 Mark Shimozono
|
14 | 14 | # Anne Schilling
|
15 | 15 | #
|
|
22 | 22 | #
|
23 | 23 | # The full text of the GPL is available at:
|
24 | 24 | #
|
25 |
| -# http://www.gnu.org/licenses/ |
26 |
| -#**************************************************************************** |
| 25 | +# https://www.gnu.org/licenses/ |
| 26 | +# *************************************************************************** |
27 | 27 |
|
28 | 28 | from sage.misc.cachefunc import cached_in_parent_method, cached_method
|
29 | 29 | from sage.structure.unique_representation import UniqueRepresentation
|
@@ -147,10 +147,7 @@ def __classcall_private__(cls, starting_weight, cartan_type = None, starting_wei
|
147 | 147 | """
|
148 | 148 | if cartan_type is not None:
|
149 | 149 | 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() |
154 | 151 |
|
155 | 152 | R = RootSystem(cartan_type)
|
156 | 153 | P = R.weight_space(extended = extended)
|
@@ -333,7 +330,7 @@ def split_step(self, which_step, r):
|
333 | 330 | sage: b.split_step(0,1/3)
|
334 | 331 | (1/3*Lambda[1] + 1/3*Lambda[2], 2/3*Lambda[1] + 2/3*Lambda[2])
|
335 | 332 | """
|
336 |
| - assert 0 <= which_step and which_step <= len(self.value) |
| 333 | + assert 0 <= which_step <= len(self.value) |
337 | 334 | v = self.value[which_step]
|
338 | 335 | return self.parent()(self.value[:which_step] + (r*v,(1-r)*v) + self.value[which_step+1:])
|
339 | 336 |
|
@@ -476,7 +473,7 @@ def e(self, i, power=1, to_string_end=False, length_only=False):
|
476 | 473 |
|
477 | 474 | ix = len(data)-1
|
478 | 475 | 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 |
480 | 477 | j = data[ix][0]
|
481 | 478 | # find the i-height where the current step might need to be split
|
482 | 479 | if ix == 0:
|
@@ -621,7 +618,7 @@ def _latex_(self):
|
621 | 618 |
|
622 | 619 |
|
623 | 620 | #####################################################################
|
624 |
| -## Projected level-zero |
| 621 | +# Projected level-zero |
625 | 622 |
|
626 | 623 |
|
627 | 624 | class CrystalOfProjectedLevelZeroLSPaths(CrystalOfLSPaths):
|
@@ -1144,7 +1141,9 @@ def energy_function(self):
|
1144 | 1141 | Wd = WeylGroup(cartan_dual, prefix='s', implementation="permutation")
|
1145 | 1142 | G = Wd.quantum_bruhat_graph(J)
|
1146 | 1143 | 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()) |
1148 | 1147 | L = [Wd.from_reduced_word(x.reduced_word()) for x in L]
|
1149 | 1148 |
|
1150 | 1149 | def stretch_short_root(a):
|
@@ -1177,7 +1176,7 @@ def stretch_short_root(a):
|
1177 | 1176 |
|
1178 | 1177 |
|
1179 | 1178 | #####################################################################
|
1180 |
| -## B(\infty) |
| 1179 | +# B(\infty) |
1181 | 1180 |
|
1182 | 1181 |
|
1183 | 1182 | class InfinityCrystalOfLSPaths(UniqueRepresentation, Parent):
|
@@ -1464,7 +1463,7 @@ def phi(self,i):
|
1464 | 1463 |
|
1465 | 1464 |
|
1466 | 1465 | #####################################################################
|
1467 |
| -## Helper functions |
| 1466 | +# Helper functions |
1468 | 1467 |
|
1469 | 1468 |
|
1470 | 1469 | def positively_parallel_weights(v, w):
|
|
0 commit comments