Skip to content

Commit

Permalink
use mock in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjankowiak committed Nov 10, 2021
1 parent e32d1f8 commit f01bbef
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ readthedocs-sphinx-search==0.1.0
sphinx==4.0.3
sphinx-gallery
sphinx_rtd_theme==0.5.2
mock
6 changes: 5 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import sys

import mock
import sphinx_rtd_theme

# import pkg_resources
Expand Down Expand Up @@ -74,6 +74,10 @@
# 'exclude-members': '__dict__,__module__,__weakref__',
# }

MOCK_MODULES = ['numpy', 'pandas', 'torch', 'scipy']
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.Mock()

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

Expand Down
2 changes: 0 additions & 2 deletions docs/source/samplers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ For most users it suffices to use the predefined Bayesian variable selection cla
like :class:`millipede.NormalLikelihoodVariableSelector`.
However advanced users also have the option of using the MCMC samplers directly.

.. automodule:: millipede

NormalLikelihoodSampler
-----------------------
.. autofunction:: millipede.normal.NormalLikelihoodSampler
Expand Down
2 changes: 0 additions & 2 deletions docs/source/selection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ Bayesian Variable Selection
Most usage cases of millipede are covered by making use of
one of the four Bayesian variable selection methods listed below.

.. automodule:: millipede

NormalLikelihoodVariableSelector
--------------------------------
.. autofunction:: millipede.selection.NormalLikelihoodVariableSelector
Expand Down

0 comments on commit f01bbef

Please sign in to comment.