Skip to content

Commit

Permalink
Merge pull request #601 from ocehugo/quick_fix_aquatracka
Browse files Browse the repository at this point in the history
BUG fix: Remove extra parenthesis
  • Loading branch information
lbesnard authored Oct 21, 2019
2 parents 0da8ee4 + 84600a6 commit ce32d10
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Preprocessing/aquatrackaPP.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
offset(i) = str2double(readProperty(['offset' analogAquatracka{i}], ParamFile));
end

commentsAquatracka = {[ getCPHLcomment('factory','430nm','685nm') ' Data converted from analogic input with scaleFactor=' num2str(scaleFactor(1)) ', offset=' num2str(offset(1))) ' .'], ...
commentsAquatracka = {[ getCPHLcomment('factory','430nm','685nm') ' Data converted from analogic input with scaleFactor=' num2str(scaleFactor(1)) ', offset=' num2str(offset(1)) ' .'], ...
['Turbidity data in FTU '...
'computed from bio-optical sensor raw counts measurements using factory calibration coefficient. The '...
'fluorometre is used as a nephelometre equipped with a 440nm peak wavelength LED to irradiate. '], ...
Expand Down
20 changes: 20 additions & 0 deletions test/testOnlyCPHL.m
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,26 @@ function test_wqmdat(testCase, wqmdat_reader, wqmdat_v000_param, mode)
assert(check_cphl(data));
end

function test_aquatrackapp(~,sbe19p_reader,sbe19p_v000_param,mode)
data = sbe19p_reader({sbe19p_v000_param},mode);
%fake volt_cphl variable
for k=1:length(data.variables)
if contains(data.variables{k}.name,'CPHL')
newvar = data.variables{k};
newvar.name = 'volt_CHL';
data.variables{end+1} = newvar;
break
end
end
output = aquatrackaPP({data},'qc',0);
data = output{1};
comment = data.variables{end}.comment;
assert(check_cphl(data));
assert(contains(comment,'analogic input'));
assert(contains(comment,'scaleFactor='));
assert(contains(comment,'offset='));
end

end

end
Expand Down

0 comments on commit ce32d10

Please sign in to comment.