Skip to content

Commit e5004fa

Browse files
authored
Renames non-polarised calculation to normal calculation (#281)
1 parent c0efe70 commit e5004fa

File tree

64 files changed

+76
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+76
-76
lines changed

API/createProject.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
% absorption terms are included in the refractive index.
88
% All of the arguments are optional.
99
%
10-
% project = createProject(name='New experiment', calc='non polarised');
10+
% project = createProject(name='New experiment', calc='normal');
1111
arguments
1212
options.name {mustBeTextScalar} = ''
13-
options.calcType = calculationTypes.NonPolarised
13+
options.calcType = calculationTypes.Normal
1414
options.model = modelTypes.StandardLayers
1515
options.geometry = geometryOptions.AirSubstrate
1616
options.absorption {mustBeA(options.absorption,'logical')} = false

API/enums/calculationTypes.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
end
1515

1616
enumeration
17-
NonPolarised ('non polarised')
17+
Normal ('normal')
1818
Domains ('domains')
1919
OilWater ('oil water')
2020
Magnetic ('magnetic')

API/makeEmptyResultStruct.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
%
55
% nParams = number of fitted parameters
66
% nContrasts = number of contrasts
7-
% nDomains = number of domains - 1 for non-polarised, 2 for domains
7+
% nDomains = number of domains - 1 for normal, 2 for domains
88
%
99
% result =
1010
%

API/projectClass/customFileClass.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function displayTable(obj)
237237
% Convert the custom files class to a struct
238238
%
239239
% customFiles.toStruct()
240-
fileStruct.files = {};
240+
fileStruct.files = cell(1, 0);
241241
fileStruct.fileIdentifiers = {};
242242
numberOfFiles = obj.rowCount;
243243
if numberOfFiles > 0

API/projectClass/domainsClass.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
% Alias of the converter routine from domainsClass to
5454
% projectClass.
5555
% This routine takes the currently defined project and
56-
% converts it to a nonPolarised calculation, preserving all
56+
% converts it to a normal calculation, preserving all
5757
% currently defined properties.
5858
%
59-
% nonPolarisedProject = project.toProjectClass();
59+
% normalProject = project.toProjectClass();
6060
projectObj = obj.projectClass();
6161
end
6262

@@ -245,11 +245,11 @@
245245
function projectObj = projectClass(obj)
246246
% Converter routine from domainsClass to projectClass.
247247
% This routine takes the currently defined project and
248-
% converts it to a nonPolarised calculation, preserving all
248+
% converts it to a normal calculation, preserving all
249249
% currently defined properties.
250250
%
251-
% nonPolarisedProject = project.projectClass();
252-
projectObj = projectClass(obj.experimentName, calculationTypes.NonPolarised, obj.modelType, obj.geometry, obj.absorption);
251+
% normalProject = project.projectClass();
252+
projectObj = projectClass(obj.experimentName, calculationTypes.Normal, obj.modelType, obj.geometry, obj.absorption);
253253
projectObj = copyProperties(obj, projectObj);
254254

255255
% Need to treat contrasts separately due to changes in the

API/projectClass/projectClass.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
% project = projectClass('New experiment');
6565
arguments
6666
experimentName {mustBeTextScalar} = ''
67-
calculationType = calculationTypes.NonPolarised
67+
calculationType = calculationTypes.Normal
6868
modelType = modelTypes.StandardLayers
6969
geometry = geometryOptions.AirSubstrate
7070
absorption {mustBeA(absorption,'logical')} = false

compile/fullCompile/makeCompileArgsFull.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
ARG = coder.typeof(0,[1 10],[1 1]);
5151
ARGS_1_1.layersDetails = coder.typeof({ARG}, [maxArraySize 1],[1 1]);
5252
ARG = coder.typeof('X',[1 maxArraySize],[0 1]);
53-
ARGS_1_1.customFiles = coder.typeof({ARG}, [1 maxArraySize], [1 1]);
53+
ARGS_1_1.customFiles = coder.typeof({ARG}, [1 maxArraySize], [0 1]);
5454
ARGS_1_1.modelType = coder.typeof('X',[1 maxArraySize],[0 1]);
5555
ARGS_1_1.contrastCustomFiles = coder.typeof(0,[1 maxArraySize],[0 1]);
5656
ARGS_1_1.contrastDomainRatios = coder.typeof(0,[1 maxArraySize],[0 1]);

compile/reflectivityCalculation/makeCompileArgs.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
ARG = coder.typeof(0,[1 10],[1 1]);
5151
ARGS_1_1.layersDetails = coder.typeof({ARG}, [maxArraySize 1],[1 1]);
5252
ARG = coder.typeof('X',[1 maxArraySize],[0 1]);
53-
ARGS_1_1.customFiles = coder.typeof({ARG}, [1 maxArraySize], [1 1]);
53+
ARGS_1_1.customFiles = coder.typeof({ARG}, [1 maxArraySize], [0 1]);
5454
ARGS_1_1.modelType = coder.typeof('X',[1 maxArraySize],[0 1]);
5555
ARGS_1_1.contrastCustomFiles = coder.typeof(0,[1 maxArraySize],[0 1]);
5656
ARGS_1_1.contrastDomainRatios = coder.typeof(0,[1 maxArraySize],[0 1]);

examples/domains/README.md

Lines changed: 1 addition & 1 deletion

examples/miscellaneous/absorption/absorptionDPPC50.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
% Set up the initial project....
5-
problem = createProject(name = 'DPPC_50_3pcBins', calcType = 'non polarised',...
5+
problem = createProject(name = 'DPPC_50_3pcBins', calcType = 'normal',...
66
model = 'custom layers', geometry = 'substrate/liquid', absorption = true);
77

88
% Add the required parameters (substrate reference as already there by default)....

0 commit comments

Comments
 (0)