Skip to content

Commit 2964e04

Browse files
committed
Morphology plot: fix radial density of output synapses
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!
1 parent 22487fe commit 2964e04

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
- Connectivity widget: fix repeated 'syn count' header label in partner tables
3535
if 1000+ query skeletons are added to the widget.
3636

37+
- Morphology plot: fix radial density of output synapses.
38+
3739
## 2021.12.21
3840

3941
Contributors: Chris Barnes, Albert Cardona, Andrew Champion, Stephan Gerhard, Sanja Jasek, Tom Kazimiers

django/applications/catmaid/static/js/widgets/morphology-plot.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,11 @@
349349
o[node] = positions[node];
350350
return o;
351351
}, {});
352+
} else if (endsWith(this.mode, 'output synapses')) {
353+
ps = line.connectors.reduce(function(o, row) {
354+
if (0 === row[2]) o[row[0]] = positions[row[0]];
355+
return o;
356+
}, {});
352357
} else if (endsWith(this.mode, 'input synapses')) {
353358
ps = line.connectors.reduce(function(o, row) {
354359
if (1 === row[2]) o[row[0]] = positions[row[0]];

0 commit comments

Comments
 (0)