Skip to content

Commit

Permalink
Don't return early from target_gids, enable intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdonline committed Oct 2, 2024
1 parent ad3f755 commit 5f3fdcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions neurodamus/connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,9 @@ def _iterate_conn_params(self, src_target, dst_target, gids=None, show_progress=

def target_gids(gids):
if gids is None:
return self._raw_gids
gids = numpy.intersect1d(gids, self._raw_gids)
gids = self._raw_gids
else:
gids = numpy.intersect1d(gids, self._raw_gids)
if dst_target:
gids = numpy.intersect1d(gids, dst_target.get_raw_gids())
return gids
Expand Down

0 comments on commit 5f3fdcf

Please sign in to comment.