Skip to content

Commit

Permalink
consensus selection of cell file names correction
Browse files Browse the repository at this point in the history
  • Loading branch information
stellastyl committed Jul 21, 2016
1 parent a4439af commit c4ec74d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Internal/getCellFiles.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@

cellNames = {contents.name}';
rightCells=regexpi(cellNames,'[cC]ell\d+.mat','once');
rightCellNames = cellNames(cell2mat(rightCells));
ids = find(cell2mat(rightCells));

rightCellNames = {cellNames{ids}};

if numel(rightCellNames) == 0
error('No cell files found')
Expand Down
2 changes: 1 addition & 1 deletion viz/makeConsensusArray.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
end

% Get the number of cells in the cell directory
cellNames = getCellFiles (cellDir,CONST)
cellNames = getCellFiles (cellDir,CONST);

numCells = numel(cellNames);

Expand Down
2 changes: 1 addition & 1 deletion viz/superSeggerViewerGui.m
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,7 @@ function makeFieldMovie(handles)
[data_r, data_c, data_f] = intLoadDataViewer( handles.dirname_seg, ...
handles.contents, ii, handles.num_im, handles.clist, handles.FLAGS);
showSeggerImage( data_c, data_r, data_f, handles.FLAGS, handles.clist, handles.CONST, handles.axes1);
drawnow;
drawnow;
mov(counter) = getframe;
counter = counter + 1;
handles.message.String = ['Frame number: ', num2str(ii)];
Expand Down

0 comments on commit c4ec74d

Please sign in to comment.