HITS-AIN / PINK

Parallelized rotation and flipping INvariant Kohonen maps
GNU General Public License v3.0
21 stars 11 forks source link

Mixing PyBind11 and plain python module 'pink' #76

Closed BerndDoser closed 1 year ago

BerndDoser commented 1 year ago

At the moment we have only one plain python function (SOM visualization) written in plain python code (tools.py). Nevertheless the possibility of mixing a pybind11 module with plain python code in the same module name (here pink) should be preserved.

Copying the pink tools beside the pybind11 library covers the pybind11 module. Therefore, we have to write an __init__.py file, which import the pybind11 module.

See https://github.com/pybind/pybind11/issues/1004

BerndDoser commented 1 year ago

Python attributes, e.g. __version__, will not be imported with import *. We have to do it explicitly.

Related issue: https://github.com/pybind/pybind11/issues/4153