Skip to content

Commit

Permalink
Morphology plot: fix radial density of output synapses
Browse files Browse the repository at this point in the history
This density plot became accidentally broken when introducing support
for desmosomes and gap junctions at the beginning of December in 2021
(ed78d6b). Instead of counting output synapses, all nodes where
taken into account.

Thanks to Gaspar Jekely for reporting this!
  • Loading branch information
tomka committed Jun 30, 2022
1 parent 22487fe commit 2964e04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
- Connectivity widget: fix repeated 'syn count' header label in partner tables
if 1000+ query skeletons are added to the widget.

- Morphology plot: fix radial density of output synapses.

## 2021.12.21

Contributors: Chris Barnes, Albert Cardona, Andrew Champion, Stephan Gerhard, Sanja Jasek, Tom Kazimiers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@
o[node] = positions[node];
return o;
}, {});
} else if (endsWith(this.mode, 'output synapses')) {
ps = line.connectors.reduce(function(o, row) {
if (0 === row[2]) o[row[0]] = positions[row[0]];
return o;
}, {});
} else if (endsWith(this.mode, 'input synapses')) {
ps = line.connectors.reduce(function(o, row) {
if (1 === row[2]) o[row[0]] = positions[row[0]];
Expand Down

0 comments on commit 2964e04

Please sign in to comment.