tBuLi / kingdon

A symbolically optimized and pythonic Clifford (geometric) algebra library named after none other than William Kingdon Clifford.
https://tbuli.github.io/teahouse/
MIT License
45 stars 5 forks source link

TypeError: 'int' object is not callable #56

Closed tBuLi closed 3 weeks ago

tBuLi commented 2 months ago

Description

Problem is in getattr, which will always return 0 if the attr doesn't exist. This is wrong, we should only behave that way if the attr is in canon2bin, i.e. a blade like e12.

What I Did

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[8], line 1
----> 1 x.set(y)

TypeError: 'int' object is not callable