Skip to content

Commit 9eec932

Browse files
committed
push for johnson
1 parent 5148be5 commit 9eec932

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/pymapmanager/interface2/core/dendrogram_widget.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,7 @@ def rePlot(self, updateHighlighter = True):
10561056

10571057
self.static_canvas.draw()
10581058

1059+
10591060
def dendrogramReplot(self, newSegmentID):
10601061
""" Recalculate all values needed to plot the dendrogram
10611062
@@ -1098,6 +1099,9 @@ def dendrogramReplot(self, newSegmentID):
10981099
spineY = []
10991100
savedSpineIndex = []
11001101

1102+
_numSpines = len(spineIndex)
1103+
spineX = [None] * _numSpines
1104+
11011105
for i, index in enumerate(spineIndex):
11021106
if self.spineLengthCheckbox.isChecked():
11031107
# logger.info("Spine length checked")
@@ -1109,12 +1113,19 @@ def dendrogramReplot(self, newSegmentID):
11091113
direction = spineSide[index] # need to index to get first and only value in series
11101114
savedSpineIndex.append(index)
11111115
# Determine direction
1116+
# from mapmanagercore.schemas.spine import SpineSide
1117+
# if(direction == SpineSide.Left.value):
11121118
if(direction == "Left"):
11131119
xVal = -1 * xVal
1114-
spineX.append(xVal)
1120+
# spineX.append(xVal)
11151121
# spineX.append(-1 * xVal)
11161122
elif(direction == "Right"):
1117-
spineX.append(xVal)
1123+
pass
1124+
# spineX.append(xVal)
1125+
elif (direction == 'Undefined'):
1126+
# spineX.append(np.nan)
1127+
xVal = np.nan
1128+
spineX[i] = xVal
11181129

11191130
# Calculate Y
11201131
if self.spineAngleCheckbox.isChecked():

src/pymapmanager/tests/test_timeseries_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_single_timepoint():
122122
print('=== after stp moveSpine() stp points[:] is now:')
123123
print(stp.points[:])
124124

125-
def test_ome_zarr():
125+
def _hide_test_ome_zarr():
126126
path = '/Users/cudmore/Sites/MapManagerCore-Data/data/single_timepoint.ome.zarr'
127127
logger.info(f'loading TimeSeriesCore from {path}')
128128
tsc = TimeSeriesCore(path)

0 commit comments

Comments
 (0)