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

Commit

Permalink
Check identity rather than equality from coset_representative.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Scrimshaw committed Mar 9, 2016
1 parent bea6b3c commit f38620a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/categories/weyl_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ def succ(x):
elt, is_quantum, scalar = NPR_data[alpha]
wr = x * elt
wrc = wr.coset_representative(index_set)
if wrc == wr and length(wr) == w_length_plus_one:
# coset_representative returns wr if nothing gets changed
if wrc is wr and length(wr) == w_length_plus_one:
successors.append((wr, alpha))
elif is_quantum and length(wrc) == w_length_plus_one - scalar:
successors.append((wrc, alpha))
Expand Down

0 comments on commit f38620a

Please sign in to comment.