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
9ac49661
Commit
9ac49661
authored
Nov 21, 2022
by
BO ZHANG
🏀
Browse files
use consistent DFS configuration in L0 query
parent
8d015c91
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
9ac49661
...
...
@@ -573,7 +573,7 @@ class CsstMsDataManager:
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. """
records
=
Level
0DataApi
()
.
find
(
obs_id
=
obs_id
)
# query DFS
records
=
CsstMsDataManager
(
dfs_node
=
dfs_node
).
dfs_L
0DataApi
.
find
(
obs_id
=
obs_id
)
print
(
f
"
{
records
[
'totalCount'
]
}
records obtained!"
)
tbl
=
Table
([
_
.
__dict__
for
_
in
records
[
"data"
]])
tbl
.
sort
([
"detector_no"
,
"obs_type"
])
...
...
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