Skip to content

Commit

Permalink
fix import of neurons by naame
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Mar 25, 2022
1 parent dac0958 commit 109dde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CATMAIDImport.py
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ def search_names(self, names, allow_partial=False):
'range_length': 500,
'with_annotations': False}
results = self.fetch(url, post)['entities']
for e in results['entities']:
for e in results:
if allow_partial and e['type'] == 'neuron' and n.lower() in e['name'].lower():
matches += e['skeleton_ids']
if not allow_partial and e['type'] == 'neuron' and e['name'] == n:
Expand Down

0 comments on commit 109dde7

Please sign in to comment.