Skip to content

Commit

Permalink
fixed Hz in sandrine2vhlabtstack
Browse files Browse the repository at this point in the history
  • Loading branch information
stevevanhooser committed Oct 17, 2018
1 parent 1fe693a commit 459f473
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions converters/sandrine2vhlab/sandrine2vhlabtstack.m
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ function sandrine2vhlabtstack(source, destination)
useit(i) = 1;
end;

useit

for i=1:r.getSeriesCount(),

r.setSeries(i-1);
Expand All @@ -111,6 +109,7 @@ function sandrine2vhlabtstack(source, destination)
dgca3var = log(i,1);
controlinhibvar = log(i,2);

namestr = 'generic';
if dgca3var==1,
namestr = 'dg_';
elseif dgca3var==3,
Expand All @@ -123,7 +122,6 @@ function sandrine2vhlabtstack(source, destination)
namestr = [namestr 'inhib'];
end

namestr = '';
nameref.name = 'tp';
nameref.ref = ref;
nameref.type = 'prairietp';
Expand Down Expand Up @@ -154,7 +152,7 @@ function sandrine2vhlabtstack(source, destination)
end
end

p = struct('parameter','FrameRate','value',median(diff(frame_dT{i})),'desc','The frame rate in Hz');
p = struct('parameter','FrameRate','value',1/median(diff(frame_dT{i})),'desc','The frame rate in Hz');
saveStructArray([destination filesep testdir filesep 'params.tiffstack'], p);

ref = ref+1;
Expand Down

0 comments on commit 459f473

Please sign in to comment.