Skip to content

Commit

Permalink
Neuron search: use neuron display name for CSV export
Browse files Browse the repository at this point in the history
Fixes #2272
  • Loading branch information
tomka committed Dec 5, 2024
1 parent f16dc83 commit 582bc54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ Miscellaneous:
- Neuron Search: neurons that don't have any annotations are now returned as
well, when neurons NOT having an annotation are queried.

- Neuron Search: the CSV export respects now the neuron display names
(NeuronNameManager) and export them instead of the fixed neuron name.

- Deep links: creating links to layouts with a loaded stack group (e.g. ortho
views or multi-channel images) won't raise an error anymore.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1926,8 +1926,10 @@
}

let makeCsvLine = (n, i) => {
// We assume one skeleton per neuron here
let row = [n.id, quote(n.name), n.skeleton_ids[0]];
// FIXME: We assume one skeleton per neuron here
const skeletonId = n.skeleton_ids[0];
const name = CATMAID.NeuronNameService.getInstance().getName(skeletonId);
let row = [n.id, quote(name), skeletonId];
if (this.displayAnnotations) {
var annotations = (n.annotations || []).map(getName).map(quote).join(', ');
row.push(quote(annotations));
Expand Down

0 comments on commit 582bc54

Please sign in to comment.