fr/fr_env/lib/python3.8/site-packages/skimage/util/lookfor.py

25 lines
583 B
Python
Raw Normal View History

2021-02-17 12:26:31 +05:30
import numpy as np
import sys
def lookfor(what):
"""Do a keyword search on scikit-image docstrings.
Parameters
----------
what : str
Words to look for.
Examples
--------
>>> import skimage
>>> skimage.lookfor('regular_grid')
Search results for 'regular_grid'
---------------------------------
skimage.lookfor
Do a keyword search on scikit-image docstrings.
skimage.util.regular_grid
Find `n_points` regularly spaced along `ar_shape`.
"""
return np.lookfor(what, sys.modules[__name__.split('.')[0]])