Commit 29810811 authored by jay's avatar jay
Browse files

Swapped __getattr__ for __geterr__ to try and avoid local recursion issues

parent 1447a9f3
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
import datetime
import os
import re

import numpy as np
import pandas as pd

+61 −60
Original line number Diff line number Diff line
@@ -17,14 +17,6 @@ import sys
import os
from unittest.mock import MagicMock

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

MOCK_MODULES = ['proj4', 'gdal', 'numpy', 'pandas', 'scipy']
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
@@ -210,7 +202,6 @@ html_last_updated_fmt = '%b %d, %Y'
# Output file base name for HTML help builder.
htmlhelp_basename = 'autocnetdoc'


# -- Options for LaTeX output ------------------------------------------

latex_elements = {
@@ -296,6 +287,16 @@ texinfo_documents = [




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


MOCK_MODULES = ['proj4', 'numpy', 'pandas', 'scipy', 'osgeo']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

# NumpyDoc Options
numpydoc_show_class_members = True
numpydoc_class_members_toctree = False