Skip to content

Commit

Permalink
refactor: properly set recur_ranges
Browse files Browse the repository at this point in the history
Co-authored-by: Nan Wang <nan.wang@jina.ai>
  • Loading branch information
JoanFM and nan-wang committed Sep 9, 2020
1 parent 42da3d7 commit 39710a9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions jina/drivers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,8 @@ def __init__(self,
:param kwargs:
"""
super().__init__(*args, **kwargs)
self._depth_start = recur_depth_range[0]
self._depth_end = recur_depth_range[1]
self._adjacency_start = recur_adjacency_range[0]
self._adjacency_end = recur_adjacency_range[1]
self._depth_start, self._depth_end = recur_depth_range
self._adjacency_start, self._adjacency_end = recur_adjacency_range
if apply_order in {'post', 'pre'}:
self.recursion_order = apply_order
else:
Expand Down

0 comments on commit 39710a9

Please sign in to comment.