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
6427f7d9
Commit
6427f7d9
authored
2 years ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
tweaks
parent
631ae616
dev
main
wangxia-main-patch-87026
zhaobowei-main-patch-61353
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_common/data_manager.py
+4
-4
csst_common/data_manager.py
with
4 additions
and
4 deletions
+4
-4
csst_common/data_manager.py
+
4
-
4
View file @
6427f7d9
...
...
@@ -574,10 +574,10 @@ class CsstMsDataManager:
def
dfs_l0_query
(
self
,
obs_id
:
str
=
"100000100"
):
""" Query L0 data from DFS. """
result
=
self
.
dfs_L0DataApi
.
find
(
obs_id
=
str
(
obs_id
))
print
(
f
"
{
result
.
totalCount
}
entries returned from DFS."
)
if
not
result
.
code
==
0
:
raise
ValueError
(
f
"DFS returns non-zero code! (
{
result
.
code
}
)"
)
tbl
=
Table
([
_
.
__dict__
for
_
in
result
.
data
])
print
(
f
"
{
result
[
'
totalCount
'
]
}
entries returned from DFS."
)
if
not
result
[
"
code
"
]
==
0
:
raise
ValueError
(
f
"DFS returns non-zero code! (
{
result
[
'
code
'
]
}
)"
)
tbl
=
Table
([
_
.
__dict__
for
_
in
result
[
"
data
"
]
])
tbl
.
sort
([
"detector_no"
,
"obs_type"
])
# Check if all 30 detectors are available
for
detector
in
CP
[
"all"
][
"detectors"
]:
...
...
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