Skip to content

Commit

Permalink
Minor fix for node selection
Browse files Browse the repository at this point in the history
  • Loading branch information
chr-pok committed Jul 2, 2024
1 parent 758e740 commit a451732
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Version 0.0.11.dev1
New Features
~~~~~~~~~~~~
- New synapse position re-use mode "reuse_strict" with re-use restricted to source selection
- Minor fix for empty data splits
- Minor fixes for empty data splits and node selection


Version 0.0.11.dev0
Expand Down
2 changes: 2 additions & 0 deletions connectome_manipulator/access_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ def get_node_ids(nodes, sel_spec, split_ids=None):
log.log_assert(isinstance(node_set, str), "Node set must be a string!")
if selection is None: # Nothing else selected
gids = nodes.ids(node_set)
if split_ids is not None:
gids = np.intersect1d(gids, sel_ids.flatten().astype(np.int64))
else: # Otherwise, intersect with selection
gids = np.intersect1d(gids, nodes.ids(node_set))
else:
Expand Down

0 comments on commit a451732

Please sign in to comment.