Skip to content

Commit ca565ca

Browse files
committed
Fixup docs
1 parent 5d932a6 commit ca565ca

4 files changed

Lines changed: 9 additions & 14 deletions

File tree

‎docs/source/conf.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
# If extensions (or modules to document with autodoc) are in another directory,
1111
# add these directories to sys.path here.
12-
rootdir = os.path.dirname(os.path.dirname(os.path.dirname(
13-
os.path.abspath(__file__))))
14-
sys.path.append(os.path.join(rootdir, 'src'))
12+
# rootdir = os.path.dirname(os.path.dirname(os.path.dirname(
13+
# os.path.abspath(__file__))))
14+
# sys.path.append(os.path.join(rootdir, 'src'))
1515

1616
# -- General configuration ------------------------------------------------
1717

@@ -25,6 +25,7 @@
2525
'sphinx.ext.napoleon',
2626
'sphinx.ext.viewcode',
2727
'nbsphinx',
28+
'IPython.sphinxext.ipython_console_highlighting',
2829
]
2930

3031
# nbsphinx_allow_errors = True

‎docs/source/notebooks.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Jupyter Notebook Examples
44
.. toctree::
55
:maxdepth: 2
66

7-
7+
notebooks/convolutional_kernel_funcs

‎docs/source/notebooks/.gitignore‎

Whitespace-only changes.

docs/standalone_notebooks/convolutional_kernel_funcs.ipynb renamed to docs/source/notebooks/convolutional_kernel_funcs.ipynb

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"triangle3 = conv_funcs.Triangle(half_base_width=3.0)\n",
4949
"pillbox = conv_funcs.Pillbox(half_base_width=2.5)\n",
5050
"sinc = conv_funcs.Sinc(3)\n",
51+
"gauss = conv_funcs.Gaussian(trunc=5.)\n",
5152
"g_sinc = conv_funcs.GaussianSinc(trunc=5.)\n",
5253
"narrow_g_sinc = conv_funcs.GaussianSinc(trunc=3.)"
5354
]
@@ -61,7 +62,7 @@
6162
"outputs": [],
6263
"source": [
6364
"plot_radius = 10.\n",
64-
"x=np.linspace(-plot_radius,plot_radius,101)"
65+
"x=np.linspace(-plot_radius,plot_radius,501)"
6566
]
6667
},
6768
{
@@ -77,22 +78,15 @@
7778
"# plt.plot(x, pillbox(x), color='r')\n",
7879
"# plt.plot(x, triangle3(x), color='g')\n",
7980
"plt.plot(x, sinc(x), color='b')\n",
81+
"plt.plot(x, gauss(x), color='m')\n",
8082
"plt.plot(x, g_sinc(x), color='k', ls=':')\n",
8183
"plt.plot(x, narrow_g_sinc(x), color='k', ls='--')\n",
8284
"plt.ylim(-0.5,1.1)"
8385
]
84-
},
85-
{
86-
"cell_type": "code",
87-
"execution_count": null,
88-
"metadata": {
89-
"collapsed": true
90-
},
91-
"outputs": [],
92-
"source": []
9386
}
9487
],
9588
"metadata": {
89+
"anaconda-cloud": {},
9690
"kernelspec": {
9791
"display_name": "Python 2",
9892
"language": "python",

0 commit comments

Comments
 (0)