This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import scipy.linalg.lapack as sll | |
| from collections import OrderedDict | |
| lines = [line for line in sll.__doc__.split('\n')] | |
| # split off the header | |
| header, lines2 = [], [] | |
| for j, line in enumerate(lines): | |
| if ':toctree: generated/' in line: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "markdown", | |
| "metadata": { | |
| "collapsed": true, | |
| "slideshow": { | |
| "slide_type": "slide" | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 1, | |
| "metadata": { | |
| "collapsed": false, | |
| "slideshow": { | |
| "slide_type": "skip" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| refguide_check.py [OPTIONS] [-- ARGS] | |
| Check for a Scipy submodule whether the objects in its __all__ dict | |
| correspond to the objects included in the reference guide. | |
| Example of usage:: | |
| $ python refguide_check.py optimize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "metadata": { | |
| "name": "", | |
| "signature": "sha256:b08b733e2899ee6d89a19249b8782f46fd81b172f4320f7febbf4ab1e43b9e6f" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "metadata": { | |
| "name": "", | |
| "signature": "sha256:64ebc188873e78125ef30a9c09fcfcf51451d6b12099e2320b5ca842eb517282" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ python tools/refguide_check.py --check_docs linalg | |
| LinAlgError | |
| ********************************************************************** | |
| File "/home/br/virtualenvs/scipy-dev/local/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 59, in LinAlgError | |
| Failed example: | |
| LA.inv(np.zeros((2,2))) | |
| Expected: | |
| Traceback (most recent call last): | |
| File "<stdin>", line 1, in <module> | |
| File "...linalg.py", line 350, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import division, absolute_import, print_function | |
| import pickle | |
| import numpy as np | |
| from numpy.testing import assert_equal, assert_, assert_raises | |
| from scipy._lib.six import string_types | |
| A, B = 3, 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| from numpy.testing import run_module_suite, assert_, TestCase | |
| class Base(object): | |
| def test_one(self): | |
| assert_(self.meth == 42) | |
| def test_two(self): | |
| assert_(2 == 3) | |