Open Erotemic opened 3 years ago
@johnwparent @tao558 @mleotta @as6520 @linus-sherrill @dstoup Thoughts?
I think using decorators to register the algorithm is an improvement over the current approach. As for the lazy registration, can it be used anywhere or should it present in the file with the algorithm?
If we decide to change the registration, I would recommend moving it out of vital into a module of its own since we would be replacing __sprokit_register__ too with a decorator
The current way of registering vital algorithms is a bit unwieldy and verbose. It seems like a perfect job for a decorator. I made a small proof-of-concept that demos a possible implementation for said decorator.
We may be able to refactor something like this