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
87c7e8fd
Commit
87c7e8fd
authored
Nov 21, 2022
by
BO ZHANG
🏀
Browse files
do not clear dir_l1 in this stage
parent
a6340265
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
87c7e8fd
...
...
@@ -579,18 +579,24 @@ class CsstMsDataManager:
pass
@
staticmethod
def
from_dfs
(
obs_id
=
"100000100"
,
datatype
=
"mbi"
,
dir_l0
=
"/L1Pipeline/L0"
,
dir_l1
=
"/L1Pipeline/L1"
,
dfs_mode
=
True
,
dfs_node
=
"pml"
):
def
from_dfs
(
obs_id
=
"100000100"
,
datatype
=
"mbi"
,
dir_l0
=
"/L1Pipeline/L0"
,
dir_l1
=
"/L1Pipeline/L1"
,
dfs_mode
=
True
,
dfs_node
=
"pml"
):
""" Initialize CsstMsDataManager from DFS. """
# (clear and) make directories
if
os
.
path
.
exists
(
dir_l0
):
os
.
system
(
f
"rm -rf
{
dir_l0
}
/*"
)
else
:
os
.
mkdir
(
dir_l0
)
if
os
.
path
.
exists
(
dir_l1
):
os
.
system
(
f
"rm -rf
{
dir_l1
}
/*"
)
else
:
os
.
mkdir
(
dir_l1
)
#
if os.path.exists(dir_l1):
#
os.system(f"rm -rf {dir_l1}/*")
#
else:
#
os.mkdir(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