Skip to content

Commit 92d9cb5

Browse files
committed
before merge j-dev-brightestPath
1 parent 267419e commit 92d9cb5

3 files changed

Lines changed: 17 additions & 8 deletions

File tree

src/pymapmanager/annotations/baseAnnotationsCore.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,10 @@ def _buildSummaryDf(self) -> pd.DataFrame:
699699
summaryDf['Pivot Distance'] = segmentDf['pivotDistance']
700700
summaryDf['Color'] = segmentDf['color']
701701

702+
except (KeyError) as e:
703+
logger.error(e)
704+
logger.error(f'available keys are: {segmentDf.keys()}')
705+
702706
except (AttributeError) as e:
703707
# when no segments
704708
logger.warning('NO SEGMENTS !!!!!!!!')

src/pymapmanager/interface2/pyMapManagerApp2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ def openWidgetFromPath(self, path : str) -> Union[stackWidget2, mapWidget]:
262262

263263
numTimepoints = _timeSeriesCore.numSessions
264264

265+
logger.info(f'numtimepoints:{numTimepoints}')
266+
265267
if numTimepoints == 1:
266268
# single timepoint map
267269
_aWidget = stackWidget2(timeseriescore=_timeSeriesCore, timepoint=0)

src/pymapmanager/interface2/runInterfaceBob.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,29 @@ def run():
2121
# a single timepoint tif file (import)
2222
path = mapmanagercore.data.getTiffChannel_1()
2323

24-
# path = mapmanagercore.data.getSingleTimepointMap()
24+
path = mapmanagercore.data.getSingleTimepointMap()
2525

2626
# a mmap with multiple timepoints, connects segments and spines
2727
# path = '/Users/cudmore/Desktop/multi_timepoint_map_seg_spine_connected.mmap'
2828
# path = mapmanagercore.data.getMultiTimepointMap()
2929

3030
# path = '/Users/cudmore/Desktop/olsen_example.mmap'
31-
path = '/Users/cudmore/Desktop/example_nd2.mmap'
32-
path = '/Users/cudmore/Desktop/example_nd2.mmap.zip'
33-
path = '/Users/cudmore/Sites/MapManagerCore-Data/data/Animal_145_Slice_1_Right.mmap.zip'
34-
path = '/Users/cudmore/Desktop/Animal_145_Slice_1_Right.mmap.zip'
31+
# path = '/Users/cudmore/Desktop/example_nd2.mmap'
32+
# path = '/Users/cudmore/Desktop/example_nd2.mmap.zip'
33+
# path = '/Users/cudmore/Sites/MapManagerCore-Data/data/Animal_145_Slice_1_Right.mmap.zip'
34+
# path = '/Users/cudmore/Desktop/Animal_145_Slice_1_Right.mmap.zip'
3535

36-
from mapmanagercore.data import getNd2Channel_1, getSingleTimepointMap_nd2, getTiffChannel_1
37-
path = getNd2Channel_1()
36+
# from mapmanagercore.data import getNd2Channel_1, getSingleTimepointMap_nd2, getTiffChannel_1
37+
# path = getNd2Channel_1()
3838
# path = getSingleTimepointMap_nd2()
3939

40-
path = '/Users/cudmore/Desktop/Animal_145_Slice_1_Right.mmap.zip'
40+
# Olson data
41+
# path = '/Users/cudmore/Desktop/Animal_145_Slice_1_Right.mmap.zip'
4142

4243
# path = getTiffChannel_1()
4344

45+
path = '/Users/cudmore/Desktop/single_timepoint_20250108.mmap'
46+
4447
app = PyMapManagerApp(sys.argv)
4548
# mw will be map widget if path has multiple timepoints, otherwise mw is a stackwidget2
4649

0 commit comments

Comments
 (0)