Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Joni Herttuainen committed Jan 4, 2024
1 parent da04bcc commit f9e764a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ New Features

Improvements
~~~~~~~~~~~~
- Possibility to query Edge IDs and Node IDs based on edge/node population type using query key ``population_type``
- Added possibility to query Edge IDs and Node IDs based on edge/node population type using query key ``population_type``

Breaking Changes
~~~~~~~~~~~~~~~~
Expand Down
4 changes: 2 additions & 2 deletions bluepysnap/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ def _circuit_mask(data, population_name, population_type, queries):
"""Handle the population, node ID queries."""
populations = queries.pop(POPULATION_KEY, None)
types = queries.pop(POPULATION_TYPE_KEY, None)
if populations is not None and population_name not in set(utils.ensure_list(populations)):
if populations is not None and population_name not in utils.ensure_list(populations):
ids = []
elif types is not None and population_type not in set(utils.ensure_list(types)):
elif types is not None and population_type not in utils.ensure_list(types):
ids = []
else:
ids = queries.pop(NODE_ID_KEY, queries.pop(EDGE_ID_KEY, None))
Expand Down

0 comments on commit f9e764a

Please sign in to comment.