Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
2 years ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
use consistent DFS configuration in L0 query
parent
8d015c91
dev
main
wangxia-main-patch-87026
zhaobowei-main-patch-61353
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_common/data_manager.py
+1
-1
csst_common/data_manager.py
with
1 addition
and
1 deletion
+1
-1
csst_common/data_manager.py
+
1
-
1
View file @
9ac49661
...
@@ -573,7 +573,7 @@ class CsstMsDataManager:
...
@@ -573,7 +573,7 @@ class CsstMsDataManager:
def
from_dfs
(
obs_id
=
"100000100"
,
datatype
=
"mbi"
,
dir_l0
=
"/L1Pipeline/L0"
,
dir_l1
=
"/L1Pipeline/L1"
,
def
from_dfs
(
obs_id
=
"100000100"
,
datatype
=
"mbi"
,
dir_l0
=
"/L1Pipeline/L0"
,
dir_l1
=
"/L1Pipeline/L1"
,
dfs_mode
=
True
,
dfs_node
=
"pml"
):
dfs_mode
=
True
,
dfs_node
=
"pml"
):
""" Initialize CsstMsDataManager from DFS. """
""" 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!"
)
print
(
f
"
{
records
[
'totalCount'
]
}
records obtained!"
)
tbl
=
Table
([
_
.
__dict__
for
_
in
records
[
"data"
]])
tbl
=
Table
([
_
.
__dict__
for
_
in
records
[
"data"
]])
tbl
.
sort
([
"detector_no"
,
"obs_type"
])
tbl
.
sort
([
"detector_no"
,
"obs_type"
])
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets