Commit 1079d49e authored by Lemmer, Jan's avatar Lemmer, Jan
Browse files

Merge branch 'fix/commentcalltoplotIDinexport' into 'master'

Commented out the calls to Matlab by reading the file, finding the calls by...

Closes #117

See merge request !75
parents 45efd8fd 296ed1b6
Pipeline #671879 passed with stage
in 52 seconds
......@@ -76,8 +76,27 @@ end
end%if
copyfile(FileNameAndLocation,RemotePath);
storagePaths{i} = RemotePath;
% Comment out call to Publish in Scriptfile
switch type
case 'script'
scripttext = regexp(fileread(RemotePath),'\n','split');
commentlines = find(contains(scripttext,'PlotID.'));
scriptfid= fopen(RemotePath,'w');
for j=1:length(scripttext)
if ismember(j,commentlines)
fprintf(scriptfid,'%s %s\n','%',scripttext{j});
else
fprintf(scriptfid,'%s\n',scripttext{j});
end
end
fclose(scriptfid);
end
end %for
status = true;
msg =([type, ' successfully published']);
% catch
% status = false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment