Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gdat
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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
gdat
Commits
df85f599
Commit
df85f599
authored
7 months ago
by
Olivier Sauter
Browse files
Options
Downloads
Patches
Plain Diff
use rmdir/mkdir from matlab
rm historical comments
parent
7e95a3cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!160
add function to recreate empty ids files automatically (to replace files in...
Pipeline
#204676
passed
7 months ago
Stage: test
Stage: post-test
Changes
1
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/TCV_IMAS/idses_empty_to_mfile.m
+2
-7
2 additions, 7 deletions
matlab/TCV_IMAS/idses_empty_to_mfile.m
with
2 additions
and
7 deletions
matlab/TCV_IMAS/idses_empty_to_mfile.m
+
2
−
7
View file @
df85f599
...
...
@@ -22,8 +22,8 @@ function [empty_dir_out,ids_empty_structures,okflags] = idses_empty_to_mfile(dir
if
nargin
<
1
||
isempty
(
dirname_for_files
)
||
~
exist
(
dirname_for_files
,
'dir'
)
dirname_for_files
=
sprintf
(
'/tmp/%s/idses_empty_to_mfile'
,
getenv
(
'USER'
));
unix
([
'rm -rf '
dirname_for_files
]
);
unix
([
'mkdir -p '
dirname_for_files
]
);
[
dummy1
,
dummy2
]
=
rmdir
(
dirname_for_files
,
's'
);
mkdir
(
dirname_for_files
);
warning
(
'no folder provided, files will be written to: %s\n'
,
dirname_for_files
);
end
empty_dir_out
=
dirname_for_files
;
...
...
@@ -49,8 +49,3 @@ okflags(end+1) = writecell(ids_list_to_generate,fullfile(dirname_for_files,'ids_
if
any
(
okflags
~=
1
)
warning
(
'some flags not ok'
)
end
% save ids_structures_IMAS326.mat ids_structures ids_list_to_generate ids_list_all
% then use ids_structures_mat_to_m to save all the structures as ids_empty_xx.m files
% [empty_dir_out] = ids_structures_mat_to_m('/tmp/sautero/ids_structures_IMAS331.mat','/tmp/sautero/ids_empty')
%
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