Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
plotID_matlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_matlab
Commits
f33473fc
Commit
f33473fc
authored
3 years ago
by
Lemmer, Jan
Browse files
Options
Downloads
Patches
Plain Diff
Change search path for config files
config files in the plotID folder will be prefered
parent
820359a1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!62
Introduce changes for V1.0 RC 1
,
!58
Change search path for config files
Pipeline
#653445
passed
3 years ago
Stage: Run
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
+PlotID/@config/config.m
+11
-3
11 additions, 3 deletions
+PlotID/@config/config.m
with
11 additions
and
3 deletions
+PlotID/@config/config.m
+
11
−
3
View file @
f33473fc
...
...
@@ -21,15 +21,23 @@ classdef config < handle
% reads config data from config file, if an error occurs the
% wizard is started by the catch block
obj
.
configFileName
=
configFileName
;
try
txt
=
fileread
(
obj
.
configFileName
);
try
%Validity Check
tmp
=
what
(
"PlotID"
);
tmp
=
strrep
(
tmp
.
path
,
'+PlotID'
,
''
);
defaultConfigPath
=
fullfile
(
tmp
,
obj
.
configFileName
);
if
isfile
(
defaultConfigPath
)
txt
=
fileread
(
defaultConfigPath
);
else
%search on path
txt
=
fileread
(
obj
.
configFileName
);
end
obj
.
configData
=
jsondecode
(
txt
);
assert
(
checkConfig
(
obj
));
if
isfield
(
obj
.
configData
,
'ExportPath'
)
obj
.
exportPath
=
obj
.
configData
.
ExportPath
;
obj
.
configData
.
options
.
Location
=
'exportPath'
;
end
catch
catch
msg
=
[
'no valid config File with the filename '
,
...
obj
.
configFileName
,
' found.'
newline
,
...
'Please enter the required information manually'
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment