Skip to content

Commit 6ada560

Browse files
Merge pull request #70 from RNA-FRETools/MASH-FRET-1.3.1
Mash fret 1.3.1 - Fix post-release bugs
2 parents ee7ad00 + a23afe8 commit 6ada560

26 files changed

Lines changed: 58 additions & 25 deletions

File tree

MASH-FRET/.release_version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"tag" : "1.2.2",
3-
"prev_commit_hash" : "e6bd182"
2+
"tag" : "1.3.0",
3+
"prev_commit_hash" : "1aa5eac8"
44
}

MASH-FRET/source/mod-trace-processing/_callbacks/pushbutton_expProj_Callback.m

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,22 @@ function pushbutton_expProj_Callback(obj, evd, h_fig)
3232
else
3333
if ~isempty(p.proj{proj}.proj_file)
3434
projName = p.proj{proj}.proj_file;
35-
[pName,projName,o] = fileparts(projName);
35+
[pname,projName,o] = fileparts(projName);
36+
if ~isempty(pname)
37+
pname = what(pname); % get absolute path
38+
pname = pname.path;
39+
end
3640

3741
elseif ~isempty(p.proj{proj}.exp_parameters{1,2})
38-
pName = pwd;
42+
pname = pwd;
3943
projName = getCorrName(p.proj{proj}.exp_parameters{1,2}, [], ...
4044
h_fig);
4145
else
42-
pName = pwd;
46+
pname = pwd;
4347
projName = 'project';
4448
end
4549

46-
defName = [pName filesep projName '.mash'];
50+
defName = [pname filesep projName '.mash'];
4751
[fname,pname,o] = uiputfile(...
4852
{'*.mash;', 'MASH project(*.mash)'; ...
4953
'*.*', 'All Files (*.*)'}, 'Export MASH project', defName);

MASH-FRET/source/mod-trace-processing/management/downCompatibilityTP.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@
103103
% added by MH, 15.1.2020: recover param for photobleaching-based gamma
104104
% calculation, change "show cuttoff" to default laser for pb detection
105105
% and insert default tolerance (= 3)
106-
if size(p_proj.prm{n}{6},2)>=3 && size(p_proj.prm{n}{6}{3},2)<8
106+
if size(p_proj.prm{n}{6},2)>=3 && size(p_proj.prm{n}{6}{3},2)>0 && ...
107+
size(p_proj.prm{n}{6}{3},2)<8
107108
ldon = ones(nFRET,1);
108109
for i = 1:nFRET
109110
ldon(i,1) = find(exc==chanExc(p_proj.FRET(i,1)));

MASH-FRET/source/mod-trace-processing/plot/plotData.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function plotData(mol, p, axes, prm, plotDscr)
1414
nExc = p.proj{proj}.nb_excitations;
1515
chanExc = p.proj{proj}.chanExc;
1616

17-
incl = p.proj{proj}.bool_intensities(:,mol);
17+
incl = ~~p.proj{proj}.bool_intensities(:,mol)';
1818
I = p.proj{proj}.intensities_denoise(incl,((mol-1)*nChan+1):mol*nChan,:);
1919
if plotDscr
2020
discrI = p.proj{proj}.intensities_DTA(incl, ...

MASH-FRET/source/mod_histogram_analysis/_callbacks/pushbutton_thm_saveProj_Callback.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ function pushbutton_thm_saveProj_Callback(obj, evd, h_fig)
2828
else
2929
projName = 'project.mash';
3030
end
31-
[pName, projName,o] = fileparts(projName);
32-
defName = [pName filesep projName '.mash'];
31+
[pname, projName,o] = fileparts(projName);
32+
if ~isempty(pname)
33+
pname = what(pname); % get absolute path
34+
pname = pname.path;
35+
end
36+
defName = [pname filesep projName '.mash'];
3337
[fname,pname,o] = uiputfile(...
3438
{'*.mash;', 'MASH project(*.mash)'; ...
3539
'*.*', 'All Files (*.*)'}, 'Export MASH project', defName);

MASH-FRET/source/mod_simulation/molecules/ud_S_moleculesPan.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ function ud_S_moleculesPan(h_fig)
5858
% set state configuration
5959
set(h.edit_nbStates, 'String', num2str(p.nbStates));
6060
state = get(h.popupmenu_states, 'Value');
61-
set(h.popupmenu_states, 'Value', state, 'String', ...
62-
cellstr(num2str((1:p.nbStates)'))');
6361
if state > p.nbStates
6462
state = p.nbStates;
6563
end
64+
set(h.popupmenu_states, 'Value', state, 'String', ...
65+
cellstr(num2str((1:p.nbStates)'))');
6666
if p.impPrm && isfield(p.molPrm, 'stateVal')
6767
set([h.edit_nbStates h.popupmenu_states h.edit_stateVal ...
6868
h.edit_simFRETw], 'Enable', 'off');

MASH-FRET/source/mod_transition_analysis/_callbacks/pushbutton_TDPsaveProj_Callback.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ function pushbutton_TDPsaveProj_Callback(obj, evd, h_fig)
2727
else
2828
projName = 'project.mash';
2929
end
30-
[pName, projName,o] = fileparts(projName);
31-
defName = [pName filesep projName '.mash'];
30+
[pname, projName,o] = fileparts(projName);
31+
if ~isempty(pname)
32+
pname = what(pname); % get absolute path
33+
pname = pname.path;
34+
end
35+
defName = [pname filesep projName '.mash'];
3236
[fname,pname,o] = uiputfile(...
3337
{'*.mash;','MASH project(*.mash)';'*.*', 'All Files (*.*)'},...
3438
'Export MASH project',defName);

MASH-FRET/source/mod_video_processing/coordinates/updateSF.m

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,20 @@
9999
% check for correct compilation of mex file for method Schmied2012
100100
if exist('forloop','file')~=3
101101
h = guidata(h_fig);
102-
if ~h.mute_actions
102+
if h.mute_actions
103103
disp(cat(2,'This spotfinder method can not be used:',...
104104
' problem with mex compilation.'));
105+
% disp('MASH-FRET will proceed to file compilation...');
106+
% try
107+
% mex(which('forloop.c'));
108+
% catch err
109+
% if strcmp(err.identifier,...
110+
% 'MATLAB:mex:NoCompilerFound_link_Win64')
111+
% disp()
112+
% else
113+
% throw(err);
114+
% end
115+
% end
105116
else
106117
setContPan(cat(2,'This spotfinder method can not be ',...
107118
'used: problem with mex compilation.'),'error',...

MASH-FRET/source/mod_video_processing/ud_VP_nChan.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@
9393
if size(p.itg_impMolPrm{1},1)<nC
9494
for c = 1:nC
9595
if c>size(p.itg_impMolPrm{1},1)
96-
p.itg_impMolPrm{1}(c,1:2) = p.itg_impMolPrm{1}(c-1,1:2) + 2;
96+
p.itg_impMolPrm{1} = ...
97+
cat(1,p.itg_impMolPrm{1},p.itg_impMolPrm{1}(end,1:2)+2);
9798
end
9899
end
99100
end

MASH-FRET/source/project/checkField.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@
116116

117117
%% check video entries
118118
% check movie file >> set movie dimensions and reading infos
119+
if ~isempty(s.movie_file)
120+
s.movie_file = which(s.movie_file); % get absolute path
121+
end
119122
if ~isempty(s.movie_file) && exist(s.movie_file, 'file')
120123
s.is_movie = 1;
121124

0 commit comments

Comments
 (0)