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
86397e68
Commit
86397e68
authored
Nov 20, 2022
by
BO ZHANG
🏀
Browse files
tweaks
parent
ccbe4807
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
86397e68
...
...
@@ -201,9 +201,6 @@ class CsstMsDataManager:
self
.
n_jobs
=
18
# DFS APIs
# self.l1api = Level1DataApi()
# aXe
self
.
set_env
()
...
...
@@ -220,6 +217,7 @@ class CsstMsDataManager:
self
.
logger_mod
=
get_logger
(
name
=
"CSST L1 Module Logger"
,
filename
=
os
.
path
.
join
(
dir_l1
,
log_mod
))
self
.
logger_mod
.
info
(
"logger_mod initialized"
)
# DFS APIs
self
.
dfs_L0DataApi
=
Level0DataApi
()
self
.
dfs_L1DataApi
=
Level1DataApi
()
self
.
dfs_L0PrcApi
=
Level0PrcApi
()
# level0到level1的处理过程记录
...
...
@@ -572,6 +570,7 @@ class CsstMsDataManager:
dfs_mode
=
True
,
dfs_node
=
"pml"
):
""" Initialize CsstMsDataManager from DFS. """
records
=
Level0DataApi
().
find
(
obs_id
=
obs_id
)
# query DFS
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