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
d332931d
Commit
d332931d
authored
Nov 24, 2022
by
BO ZHANG
🏀
Browse files
added clear_l1 option
parent
7ca7ea78
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
d332931d
...
...
@@ -608,7 +608,8 @@ class CsstMsDataManager:
dir_l0
=
"/L1Pipeline/L0"
,
dir_l1
=
"/L1Pipeline/L1"
,
use_dfs
=
True
,
dfs_node
=
"pml"
dfs_node
=
"pml"
,
clear_l1
=
False
,
):
""" Initialize CsstMsDataManager from DFS. """
# (clear and) make directories
...
...
@@ -623,6 +624,8 @@ class CsstMsDataManager:
# os.chdir(dir_l1)
if
not
os
.
path
.
exists
(
dir_l1
):
os
.
mkdir
(
dir_l1
)
elif
clear_l1
:
os
.
system
(
f
"rm -rf
{
dir_l1
}
/*"
)
os
.
chdir
(
dir_l1
)
print
(
f
"Query obs_id=
{
obs_id
}
..."
,
end
=
""
)
...
...
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