You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be a minor issue, but I decide to report it here anyway.
Here is an example when two functional terms that are supposed to be identical are handled differently with and without @formula.
Since an instance of FunctionalTerm created by @formula involves an anonymous function, the two lag(x,1)s inside @formula are not considered identical and hence the "uniqueness" is not handled.
The text was updated successfully, but these errors were encountered:
junyuan-chen
changed the title
Inconsistent behavior when adding two "duplicate" functional terms with @formula
Inconsistent behavior when adding two "duplicate" functional terms with @formula
Dec 24, 2020
Thanks for the report, that's a real issue since we try to ensure that terms are
unique in a context, as you noted. I also agree with your diagnosis of the
underlying issue, which (I think) should be fixed by #183. In the mean time I
think we can add a specialized method for comparing two function terms...
* confirm failing test for #204
* equality for FuncionTerm check function and original expression
* test that adding two non-equal FunctionTerms works correctly
This seems to be a minor issue, but I decide to report it here anyway.
Here is an example when two functional terms that are supposed to be identical are handled differently with and without
@formula
.Since an instance of
FunctionalTerm
created by@formula
involves an anonymous function, the twolag(x,1)
s inside@formula
are not considered identical and hence the "uniqueness" is not handled.The text was updated successfully, but these errors were encountered: