Moved imports of scikit-image from module level to function level to avoid...
Changes:
- Moved imports of scikit-image from module level to function level to avoid 'ImportError: dlopen: cannot load any more object with static TLS'.
Note that scikit-image is an 'object with static TLS' (such as matplotlib, gdal, scipy, pykdtree, rasterio, ...) from which only a limited number can be imported at the module level. I had the above exception in gms_preprocessing which imports sicor after importing some other objects with static TLS. Since you rarely use the skimage functions in sicor, the easiest fix was to move the imports to function level.
See also https://gitext.gfz-potsdam.de/danschef/py_tools_ds/-/issues/8 and https://gitext.gfz-potsdam.de/EnMAP/GFZ_Tools_EnMAP_BOX/EnPT/-/issues/29.
Signed-off-by: Daniel Scheffler danschef@gfz-potsdam.de