Skip to content

Commit a23afe8

Browse files
committed
fix plot bug when importing data from one ASCII file
1 parent 1aa5eac commit a23afe8

3 files changed

Lines changed: 5 additions & 5 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.1.2",
3-
"prev_commit_hash" : "74caea28"
2+
"tag" : "1.3.0",
3+
"prev_commit_hash" : "1aa5eac8"
44
}

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/project/intAscii2mash.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@
394394
end
395395

396396
nS = 0;
397-
nMol = size(fname,2);
397+
nMol = size(intensities,2)/nChan;
398398

399399
s.date_creation = datestr(now);
400400
s.date_last_modif = s.date_creation;
@@ -446,6 +446,6 @@
446446
s.FRET_DTA = fret_DTA;
447447

448448
s.S_DTA = nan([size(intensities,1) nS*nMol]);
449-
s.bool_intensities = incl;
449+
s.bool_intensities = ~~incl;
450450

451451

0 commit comments

Comments
 (0)