Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
artoa4argo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
argoTools
artoa4argo
Commits
d5e76373
Commit
d5e76373
authored
Sep 1, 2019
by
leprob001
Browse files
Options
Downloads
Patches
Plain Diff
Renamed variable that was named like a built-in MATLAB function.
parent
cb432789
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/+artoa/+load/tomlini.m
+4
-4
4 additions, 4 deletions
lib/+artoa/+load/tomlini.m
with
4 additions
and
4 deletions
lib/+artoa/+load/tomlini.m
+
4
−
4
View file @
d5e76373
...
@@ -210,19 +210,19 @@ end
...
@@ -210,19 +210,19 @@ end
end
end
end
end
function
[
c
ell
]
=
parseAsCell
(
pContent
)
function
[
parsedC
ell
]
=
parseAsCell
(
pContent
)
lines
=
splitlines
(
pContent
);
lines
=
splitlines
(
pContent
);
c
ell
=
{};
parsedC
ell
=
{};
for
i
=
1
:
length
(
lines
)
for
i
=
1
:
length
(
lines
)
if
(
isempty
(
lines
{
i
})
||
isComment
(
lines
{
i
}))
if
(
isempty
(
lines
{
i
})
||
isComment
(
lines
{
i
}))
continue
continue
end
end
[
line
,
comment
]
=
extractValueAndComment
(
lines
{
i
});
[
line
,
comment
]
=
extractValueAndComment
(
lines
{
i
});
c
ell
{
i
}
=
strsplit
(
...
parsedC
ell
{
i
}
=
strsplit
(
...
strtrim
(
line
),
{
' '
,
'\t'
},
'CollapseDelimiters'
,
true
...
strtrim
(
line
),
{
' '
,
'\t'
},
'CollapseDelimiters'
,
true
...
);
);
end
end
c
ell
=
vertcat
(
c
ell
{:});
% combine all cells to one
parsedC
ell
=
vertcat
(
parsedC
ell
{:});
% combine all cells to one
end
end
function
[
value
,
comment
]
=
extractValueAndComment
(
pString
)
function
[
value
,
comment
]
=
extractValueAndComment
(
pString
)
...
...
...
...
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
sign in
to comment