MacenkoNormalizer not recognized when importing wsitiler.normalizer
jeanrclemenceau opened this issue · 1 comments
jeanrclemenceau commented
If you run import wsitiler.normalizer as norm
and try to instantiate an object like:
obj = norm.MacenkoNormalizer.MacenkoNormalizer()
, then MacenkoNormalizer
can't be found:
AttributeError: module 'wsitiler.normalizer' has no attribute 'MacenkoNormalizer'
However, if we import as import wsitiler.normalizer.MacenkoNormalizer as norm
then we CAN call norm.MacenkoNormalizer()
jeanrclemenceau commented
Solved in pull request #6
I needed to add the functions within the MacenkoNormalizer.py
to the normalizer
module namespace within the __init__.py
file.