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-dfs
csst-dfs-api-cluster
Commits
32940b1f
Commit
32940b1f
authored
Jun 22, 2023
by
Wei Shoulin
Browse files
brick_id str
parent
ab19cf29
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_api_cluster/mbi/level2.py
View file @
32940b1f
...
@@ -77,7 +77,7 @@ class Level2DataApi(object):
...
@@ -77,7 +77,7 @@ class Level2DataApi(object):
datas
=
io
.
BytesIO
()
datas
=
io
.
BytesIO
()
totalCount
=
0
totalCount
=
0
resps
=
self
.
stub
.
FindCatalog
(
level2_pb2
.
FindLevel2CatalogReq
(
resps
=
self
.
stub
.
FindCatalog
(
level2_pb2
.
FindLevel2CatalogReq
(
brick_ids
=
","
.
join
(
get_parameter
(
kwargs
,
"brick_ids"
,
[])),
brick_ids
=
","
.
join
(
[
str
(
i
)
for
i
in
get_parameter
(
kwargs
,
"brick_ids"
,
[])
]
),
obs_id
=
get_parameter
(
kwargs
,
"obs_id"
,
None
),
obs_id
=
get_parameter
(
kwargs
,
"obs_id"
,
None
),
detector_no
=
get_parameter
(
kwargs
,
"detector_no"
,
None
),
detector_no
=
get_parameter
(
kwargs
,
"detector_no"
,
None
),
filter
=
get_parameter
(
kwargs
,
"filter"
,
None
),
filter
=
get_parameter
(
kwargs
,
"filter"
,
None
),
...
@@ -122,7 +122,7 @@ class Level2DataApi(object):
...
@@ -122,7 +122,7 @@ class Level2DataApi(object):
'''
'''
try
:
try
:
resp
,
_
=
self
.
stub
.
FindCatalogFile
.
with_call
(
level2_pb2
.
FindLevel2CatalogReq
(
resp
,
_
=
self
.
stub
.
FindCatalogFile
.
with_call
(
level2_pb2
.
FindLevel2CatalogReq
(
brick_ids
=
get_parameter
(
kwargs
,
"brick_ids"
,
[]),
brick_ids
=
","
.
join
([
str
(
i
)
for
i
in
get_parameter
(
kwargs
,
"brick_ids"
,
[])
])
,
obs_id
=
get_parameter
(
kwargs
,
"obs_id"
),
obs_id
=
get_parameter
(
kwargs
,
"obs_id"
),
detector_no
=
get_parameter
(
kwargs
,
"detector_no"
),
detector_no
=
get_parameter
(
kwargs
,
"detector_no"
),
filter
=
get_parameter
(
kwargs
,
"filter"
,
None
),
filter
=
get_parameter
(
kwargs
,
"filter"
,
None
),
...
@@ -151,7 +151,7 @@ class Level2DataApi(object):
...
@@ -151,7 +151,7 @@ class Level2DataApi(object):
return: csst_dfs_common.models.Result
return: csst_dfs_common.models.Result
'''
'''
try
:
try
:
resp
,
_
=
self
.
stub
.
FindExistedBricks
.
with_call
(
level2_pb2
.
FindExistedBricksReq
(),
metadata
=
get_auth_headers
())
resp
,
_
=
self
.
stub
.
FindExistedBricks
(
level2_pb2
.
FindExistedBricksReq
(),
metadata
=
get_auth_headers
())
if
resp
.
success
:
if
resp
.
success
:
return
Result
.
ok_data
(
data
=
resp
.
brick_ids
)
return
Result
.
ok_data
(
data
=
resp
.
brick_ids
)
...
...
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