I have a customized module with following hierarchy:
module
__init__.py
kernel1
__init__.py
alg1.py
alg2.py
kernel2
__init__.py
alg1.py
alg2.py
Here, kernel1
and kernel2
should implement exactly the same series of algorithms but using different bottom libraries.
I am wondering if there is a way that I can ensure every method defined in kernel1
has a counterpart in kernel2
, and vice versa.
For example, if there is a function f_kernel1
defined in kernel1
(either alg1.py
or alg2.py
), it should have a function f_kernel2
defined in kernel2
(either alg1.py
or alg2.py
)