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
Hello,
First of all, I want to thank you for pygraphblas.
I have a question. To ask the question I will reproduce the sequence of actions.
I installed the latest version of pygraphblas via pip
After that I tried to run your example for user-defined types in tests. For this I had to add the following imports
from pygraphblas.types import Type, binop
from pygraphblas import lib
After that I ran the example. But I got an error
File "/home/ilya/.local/lib/python3.8/site-packages/pygraphblas/types.py", line 437, in __set_name__
if cls._base_name == "UDT":
AttributeError: type object 'BF' has no attribute '_base_name'
To fix this error, I had to add _base_name = "UDT" attribute to the class BF
After that the error disappeared. Can you please tell me this is how it should be done or the problem is something else.
I'm also interested in #65 too.
The text was updated successfully, but these errors were encountered:
Hello,
First of all, I want to thank you for pygraphblas.
I have a question. To ask the question I will reproduce the sequence of actions.
_base_name = "UDT"
attribute to the class BFAfter that the error disappeared. Can you please tell me this is how it should be done or the problem is something else.
I'm also interested in #65 too.
The text was updated successfully, but these errors were encountered: