Commit e55fd694 authored by jlaura's avatar jlaura
Browse files

Update conf.py

parent 87fab02f
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -17,6 +17,17 @@ import sys
import os
from unittest.mock import MagicMock

class Mock(MagicMock):
    @classmethod
    def __getattr__(cls, name):
            return Mock()

MOCK_MODULES = ['proj4', 'gdal', 'osr','ogr', 'cv2', 'scikit-image', 'skimage', 'skimage.feature', 'sklearn',
                'scipy', 'scipy.spatial', 'scipy.spatial.distance', 'scipy.ndimage', 'scipy.ndimage.interpolation',
                'scipy.constants', 'scipy.stats','scipy.cluster.vq', 'scipy.sparse', 'osgeo']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)


# If extensions (or modules to document with autodoc) are in another
# directory, add these directories to sys.path here. If the directory is
# relative to the documentation root, use os.path.abspath to make it
@@ -279,14 +290,3 @@ texinfo_documents = [
# If true, do not generate a @detailmenu in the "Top" node's menu.
# texinfo_no_detailmenu = False
from unittest.mock import MagicMock

class Mock(MagicMock):
    @classmethod
    def __getattr__(cls, name):
            return Mock()

MOCK_MODULES = ['proj4', 'gdal', 'osr','ogr', 'cv2', 'scikit-image', 'skimage', 'skimage.feature', 'sklearn',
                'scipy', 'scipy.spatial', 'scipy.spatial.distance', 'scipy.ndimage', 'scipy.ndimage.interpolation',
                'scipy.constants', 'scipy.stats','scipy.cluster.vq', 'osgeo']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)