Skip to content

Commit

Permalink
fix a issue when matlab doesnot support parallel computation
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoupc committed Dec 13, 2017
1 parent 3b27da2 commit f950d1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ca_source_extraction/endoscope/get_patch_data.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
end

% check whether the code is running on a worker (for parallel processing)
isOnWorker = ~isempty(getCurrentTask());
try
isOnWorker = ~isempty(getCurrentTask());
catch
isOnWorker = false;
end

%% check whether the mat_data has been loaded into the base space
mat_file = mat_data.Properties.Source();
Expand Down

0 comments on commit f950d1a

Please # to comment.