Skip to content

Commit 5c35075

Browse files
committed
small improvement in classically_highest_weight_vectors
1 parent dc99dc8 commit 5c35075

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/sage/categories/loop_crystals.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -773,16 +773,17 @@ def classically_highest_weight_vectors(self):
773773
except StopIteration:
774774
it.pop()
775775
if path:
776-
path.pop(0)
776+
path.pop()
777777
continue
778778

779-
b = self.element_class(self, [x] + path)
779+
path.append(x)
780+
b = self.element_class(self, reversed(path))
780781
if not b.is_highest_weight(index_set=I0):
782+
path.pop()
781783
continue
782-
path.insert(0, x)
783784
if len(path) == n:
784785
ret.append(b)
785-
path.pop(0)
786+
path.pop()
786787
else:
787788
it.append(iter(self.crystals[-len(path) - 1]))
788789
return tuple(ret)

0 commit comments

Comments
 (0)