Skip to content

Commit

Permalink
Modification arCreateDataStruct
Browse files Browse the repository at this point in the history
  • Loading branch information
ckreutz committed Dec 12, 2023
1 parent 0f83333 commit 65434b3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
8 changes: 6 additions & 2 deletions arFramework3/Advanced/arCreateDataStruct.m
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,12 @@
D.fp = transpose(D.p);

% execute substitutions from ar.model.p/ar.model.fp
[int, iA, iB] = intersect(D.fp, ar.model.p);
D.fp(iA) = ar.model.fp(iB);
% try
[int, iA, iB] = intersect(D.fp, ar.model(m).p);
% catch
% ar.model.p
% end
D.fp(iA) = ar.model(m).fp(iB);

%% now replace fp which was provided as function argument:
[~,ia,ib] = intersect(D.p,pold);
Expand Down
2 changes: 1 addition & 1 deletion arFramework3/Advanced/arFindInputs.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

for c = 1 : length( step1 )
ar.model(m).condition(a).fu{b}(step1(c):end);
chk = strsplit(ar.model(m).condition(a).fu{b}(step1(c):end),',');
chk = strsplit(ar.model(m).condition(a).fu{b}(step1(c):end),',')
stepLocations{end+1} = chk{3}; %#ok
end
for c = 1 : length( step2 )
Expand Down
7 changes: 7 additions & 0 deletions arFramework3/Advanced/arRecompile.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ function arRecompile(sameParameterSettings, varargin)

if isfield(ar,'setup') % only available in higher verions
arIn = arDeepCopy(ar);

if(~isfield(arIn.setup,'backup_model_folder_local'))
error('arRecompile: ar.setup.backup_model_folder_local does not exist. Save first via arSave.')
end
if(~isfield(arIn.setup,'backup_data_folder'))
error('arRecompile: ar.setup.backup_data_folder does not exist. Save first via arSave.')
end

try
for i=1:length(arIn.setup.commands)
Expand Down

0 comments on commit 65434b3

Please sign in to comment.