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
c308a4d4
Commit
c308a4d4
authored
Feb 16, 2023
by
BO ZHANG
🏀
Browse files
log out catalog query code and message
parent
2e35e622
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
c308a4d4
...
...
@@ -740,7 +740,6 @@ class CsstMsDataManager:
https://gea.esac.esa.int/archive/documentation/GDR3/Gaia_archive/chap_datamodel/
sec_dm_main_source_catalogue/ssec_dm_gaia_source.html
"""
try
:
cat
=
self
.
dfs_CatApi
.
catalog_query
(
catalog_name
=
"gaia3"
,
ra
=
ra
,
...
...
@@ -752,11 +751,11 @@ class CsstMsDataManager:
obstime
=
obstime
,
limit
=
limit
)
tbl
=
self
.
dfs_CatApi
.
to_table
(
cat
)
return
tbl
except
:
print
(
"Error occurred during the query!"
)
r
eturn
None
self
.
logger_ppl
.
info
(
f
"Results from DFS CATAPI: code =
{
cat
[
'code'
]
}
, message =
{
cat
[
'message'
]
}
"
)
if
cat
[
"code"
]
==
0
:
return
self
.
dfs_CatApi
.
to_table
(
cat
)
else
:
r
aise
ValueError
(
"Bad results!"
)
def
dfs_l1_push
(
self
):
""" Push MBI/SLS L1 data to DFS. """
...
...
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