Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
ed91880b
Commit
ed91880b
authored
Aug 10, 2023
by
BO ZHANG
🏀
Browse files
add CsstMsFile.move_to()
parent
1fb76a54
Pipeline
#877
running with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
ed91880b
...
...
@@ -1138,6 +1138,14 @@ class CsstMsFile(dict):
header
=
header
)
def
move_to
(
self
,
dir_in
=
"./input"
,
dir_out
=
"./output"
):
return
CsstMsFile
(
filepath
=
os
.
path
.
join
(
dir_in
,
os
.
path
.
basename
(
self
.
filepath
)),
ver_sim
=
self
.
ver_sim
,
dir_out
=
dir_out
,
**
self
.
kwargs
)
def
to_dict
(
self
):
return
dict
(
filepath
=
self
.
filepath
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment