MareoRaft / k_combinat_for_sage

k-Schur combinatorics for SageMath
4 stars 1 forks source link

coefficient glitch in `raise_func` #12

Open MareoRaft opened 6 years ago

MareoRaft commented 6 years ago

There is a comment in all.py in raise_func that says "occasionally a coefficient can show up (not cool, so consider the inclusion of coeff here a patch)". This is because some special inputs for operand in the parent __call__ function ultimately resulted in a coefficient appearing in dic, which SHOULD NEVER HAPPEN.

(composition, coeff) = dic.items()[0]

captures the coefficient of the operand in coeff. coeff SHOULD always be 1. I never figured out what was causing this. Although the current code is a working workaround, I think there is an underlying issue that should be fixed!