Skip to content

Commit

Permalink
fix(flow): update docstring in flow
Browse files Browse the repository at this point in the history
fix(flow): update docstring in flow
  • Loading branch information
YueLiu1415926 committed Jun 3, 2020
1 parent b36b34a commit 93a91b5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions jina/flow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,6 @@ def index_numpy(self, array: 'np.ndarray', axis: int = 0, size: int = None, shuf
:param shuffle: shuffle the the numpy data source beforehand
:param output_fn: the callback function to invoke after indexing
:param kwargs: accepts all keyword arguments of `jina client` CLI
:return:
"""
from ..clients.python.io import input_numpy
self._get_client(**kwargs).index(input_numpy(array, axis, size, shuffle), output_fn)
Expand All @@ -594,7 +593,6 @@ def search_numpy(self, array: 'np.ndarray', axis: int = 0, size: int = None, shu
:param shuffle: shuffle the the numpy data source beforehand
:param output_fn: the callback function to invoke after indexing
:param kwargs: accepts all keyword arguments of `jina client` CLI
:return:
"""
from ..clients.python.io import input_numpy
self._get_client(**kwargs).search(input_numpy(array, axis, size, shuffle), output_fn)
Expand All @@ -614,7 +612,6 @@ def index_files(self, patterns: Union[str, List[str]], recursive: bool = True,
is opened. 'r' for reading in text mode, 'rb' for reading in
:param output_fn: the callback function to invoke after indexing
:param kwargs: accepts all keyword arguments of `jina client` CLI
:return:
"""
from ..clients.python.io import input_files
self._get_client(**kwargs).index(input_files(patterns, recursive, size, sampling_rate, read_mode), output_fn)
Expand All @@ -634,7 +631,6 @@ def search_files(self, patterns: Union[str, List[str]], recursive: bool = True,
is opened. 'r' for reading in text mode, 'rb' for reading in
:param output_fn: the callback function to invoke after indexing
:param kwargs: accepts all keyword arguments of `jina client` CLI
:return:
"""
from ..clients.python.io import input_files
self._get_client(**kwargs).search(input_files(patterns, recursive, size, sampling_rate, read_mode), output_fn)
Expand Down

0 comments on commit 93a91b5

Please sign in to comment.