Skip to content

Commit

Permalink
bug fix for parallelization related tmp file collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Petre committed May 8, 2024
1 parent 25cb18e commit fb6dd06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CanlabCore/GLM_Batch_tools/canlab_glm_subject_levels.m
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ function canlab_glm_subject_levels(dsgnarg, varargin)

% make working directory
wd = regexprep(diaryname,'\.log$','');
% add uuid to avoid collisions when parallelizing
wd = fullfile(wd, char(java.util.UUID.randomUUID));
mkdir(wd)


Expand Down

0 comments on commit fb6dd06

Please sign in to comment.