Closed arihantparsoya closed 7 years ago
Adding a single rule in ManyToOneReplacer
does not raise this issue.
The problem is that MatchPy tries to copy wildvcards when renaming them and sympy has cached symbol instances that are not actually copied. The problem is the @cacheit
on the __xnew__
, if you remove it it works fine.
By the way, you have to be careful with your factories for Integral
. The number of elements in the iterator and the length are going to differ which might cause problems.
Thanks.
When adding multiple rules in
ManyToOneReplacer
along withCustomConstraint
, I recieveTypeError: <lambda>() got an unexpected keyword argument 'i2'
Code:
Error: