Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions API/domainsClass/domainsClass.m
Original file line number Diff line number Diff line change
Expand Up @@ -220,17 +220,7 @@
generalStruct.TF = 'domainsTF';

% Add the 'general' fields
thisType = obj.modelType;

switch lower(thisType)
case 'standard layers'
generalStruct.modelType = 'layers';
case 'custom layers'
generalStruct.modelType = 'custom layers';
case 'custom xy'
generalStruct.modelType = 'custom xy';
end

generalStruct.modelType = lower(obj.modelType);
generalStruct.geometry = obj.geometry;

% Parameters
Expand Down Expand Up @@ -274,7 +264,7 @@
paramNames = string(paramStruct.paramNames);

switch generalStruct.modelType
case 'layers'
case 'standard layers'
numberOfLayers = layersStruct.numberOfLayers;

if numberOfLayers > 0
Expand Down
2 changes: 1 addition & 1 deletion API/domainsClass/reflContrastsClass.m
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@


switch modelType
case 'layers'
case 'standard layers'
thisModel = thisContrast.model;
thisLayerArray = [];
for n = 1:length(thisModel)
Expand Down
2 changes: 1 addition & 1 deletion API/domainsClass/simContrastsClass.m
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
contrastRepeatSLDs{i} = [0 1];

switch modelType
case 'layers'
case 'standard layers'
thisModel = thisContrast.model;
thisLayerArray = [];
for n = 1:length(thisModel)
Expand Down
2 changes: 1 addition & 1 deletion API/projectClass/contrastsClass.m
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@


switch modelType
case 'layers'
case 'standard layers'
thisModel = thisContrast.model;
thisLayerArray = [];
for n = 1:length(thisModel)
Expand Down
14 changes: 2 additions & 12 deletions API/projectClass/projectClass.m
Original file line number Diff line number Diff line change
Expand Up @@ -801,17 +801,7 @@
generalStruct.TF = 'standardTF';

% Add the 'general' fields
thisType = obj.modelType;

switch lower(thisType)
case 'standard layers'
generalStruct.modelType = 'layers';
case 'custom layers'
generalStruct.modelType = 'custom layers';
case 'custom xy'
generalStruct.modelType = 'custom xy';
end

generalStruct.modelType = lower(obj.modelType);
generalStruct.geometry = obj.geometry;

% Parameters
Expand Down Expand Up @@ -855,7 +845,7 @@
paramNames = string(paramStruct.paramNames);

switch generalStruct.modelType
case 'layers'
case 'standard layers'
numberOfLayers = layersStruct.numberOfLayers;

if numberOfLayers > 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
end

switch lower(type)
case 'layers'
case 'standard layers'
% Standard layers calculation
% [problem,reflectivity,Simulation,...
% shifted_data,layerSlds,sldProfiles,...
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
end

switch lower(type)
case 'layers'
case 'standard layers'
% Standard layers calculation
[problem,reflectivity,Simulation,...
shifted_data,layerSlds,sldProfiles,...
Expand Down
2 changes: 0 additions & 2 deletions testRatScript.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
disp('Adding paths Initiated')
addRatPaths;
disp('Adding paths Completed')
disp('Compiling RAT to mex Initiated')
disp('Compiling RAT to mex Completed')

allTests = TestSuite.fromFolder('tests','IncludingSubfolders', true);
disp('Running unit tests')
Expand Down
Binary file modified tests/standardTFReflectivityCalculation/customLayersInputs.mat
Binary file not shown.
Binary file modified tests/standardTFReflectivityCalculation/customLayersOutputs.mat
Binary file not shown.
Binary file modified tests/standardTFReflectivityCalculation/customLayersTFParams.mat
Binary file not shown.
Binary file modified tests/standardTFReflectivityCalculation/customXYInputs.mat
Binary file not shown.
Binary file modified tests/standardTFReflectivityCalculation/customXYOutputs.mat
Binary file not shown.
Binary file modified tests/standardTFReflectivityCalculation/customXYTFParams.mat
Binary file not shown.
Binary file modified tests/standardTFReflectivityCalculation/standardLayersInputs.mat
Binary file not shown.
Binary file modified tests/standardTFReflectivityCalculation/standardLayersOutputs.mat
Binary file not shown.
Binary file not shown.