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
8b383347
Commit
8b383347
authored
Mar 09, 2023
by
BO ZHANG
🏀
Browse files
return recs in dm.link_L0Data
parent
ff554c98
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
8b383347
...
...
@@ -820,7 +820,7 @@ class CsstMsDataManager:
pass
@
staticmethod
def
link_
d
ata
(
obs_id
=
"100000100"
,
dfs_root
=
"/dfsroot"
,
dir_l0
=
"/L1Pipeline/L0"
):
def
link_
L0D
ata
(
obs_id
=
"100000100"
,
dfs_root
=
"/dfsroot"
,
dir_l0
=
"/L1Pipeline/L0"
):
# query for L0 data
print
(
f
"Query obs_id=
{
obs_id
}
..."
,
end
=
""
)
recs
=
Level0DataApi
().
find
(
obs_id
=
obs_id
)
...
...
@@ -835,6 +835,8 @@ class CsstMsDataManager:
src
=
os
.
path
.
join
(
dfs_root
,
rec
.
file_path
),
dst
=
os
.
path
.
join
(
dir_l0
,
os
.
path
.
basename
(
rec
.
file_path
)),
)
# return records
return
recs
@
staticmethod
def
from_dfs
(
...
...
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