Skip to content

coefficient glitch in raise_func #12

@MareoRaft

Description

@MareoRaft

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions