-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #735 from aodn/release_2.6.11
Release 2.6.11, fixes #733
- Loading branch information
Showing
12 changed files
with
82 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
classdef testDepthPP < matlab.unittest.TestCase | ||
|
||
% Test DepthPP | ||
% | ||
% by [email protected] | ||
% | ||
properties (TestParameter) | ||
mode = {'profile','timeSeries'}; | ||
end | ||
|
||
methods (Test) | ||
function testDepthPPOverwriteDepth(~, mode) | ||
d = IMOS.gen_dimensions(mode,1,{'TIME'},{@double},{randn(100,1)}); | ||
parr = 100*ones(100,1); | ||
darr = randn(100,1); | ||
v = IMOS.gen_variables(d,{'X','PRES','DEPTH'},{@double,@double,@double},{randn(1,1),parr,darr},'coordinates',''); | ||
dataset = struct(); | ||
dataset.dimensions = d; | ||
dataset.variables = v; | ||
dataset.instrument_nominal_depth = 200; | ||
dataset.site_nominal_depth = 205; | ||
dataset.toolbox_input_file = ''; | ||
dataset.meta = struct(); | ||
dataset = makeNetCDFCompliant(dataset); | ||
disp('Select from PRES measurements to overwrite DEPTH and make this test pass') | ||
x = depthPP({dataset},'qc',false); %select from PRES to overwrite DEPTH | ||
assert(~isequal(x{1}.variables{end}.data,darr)); | ||
end | ||
end | ||
|
||
end |