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-client
Commits
200d66e0
Commit
200d66e0
authored
Mar 03, 2025
by
Wei Shoulin
Browse files
ra_obj -> ra_cen
parent
14c2a123
Changes
2
Hide whitespace changes
Inline
Side-by-side
csst_dfs_client/level1.py
View file @
200d66e0
...
...
@@ -16,14 +16,14 @@ def find(project_id: Optional[str] = None,
qc1_status
:
Optional
[
int
]
=
None
,
prc_status
:
Optional
[
int
]
=
None
,
file_name
:
Optional
[
str
]
=
None
,
ra_
obj
:
Optional
[
int
]
=
None
,
dec_
obj
:
Optional
[
int
]
=
None
,
ra_
cen
:
Optional
[
int
]
=
None
,
dec_
cen
:
Optional
[
int
]
=
None
,
radius
:
Optional
[
float
]
=
None
,
object_name
:
Optional
[
str
]
=
None
,
rss_id
:
Optional
[
str
]
=
None
,
cube_id
:
Optional
[
str
]
=
None
,
dataset
:
Optional
[
str
]
=
N
on
e
,
batch_id
:
Optional
[
str
]
=
N
on
e
,
dataset
:
str
=
c
on
stants
.
DEFAULT_DATASET
,
batch_id
:
str
=
c
on
stants
.
DEFAULT_BATCH_ID
,
page
:
int
=
1
,
limit
:
int
=
0
)
->
Result
:
"""
...
...
@@ -41,8 +41,8 @@ def find(project_id: Optional[str] = None,
qc1_status (Optional[int], optional): QC1状态. Defaults to None.
prc_status (Optional[int], optional): 处理状态. Defaults to None.
file_name (Optional[str], optional): 文件名. Defaults to None.
ra_
obj
(Optional[int], optional):
目标
赤经. Defaults to None.
dec_
obj
(Optional[int], optional):
目标
赤纬. Defaults to None.
ra_
cen
(Optional[int], optional):
中心
赤经. Defaults to None.
dec_
cen
(Optional[int], optional):
中心
赤纬. Defaults to None.
radius (Optional[float], optional): 搜索半径. Defaults to None.
object_name (Optional[str], optional): 天体名称. Defaults to None.
rss_id (Optional[str], optional): RSS ID (IFS) Defaults to None.
...
...
@@ -68,8 +68,8 @@ def find(project_id: Optional[str] = None,
'qc1_status'
:
qc1_status
,
'prc_status'
:
prc_status
,
'file_name'
:
file_name
,
'ra_
obj
'
:
ra_
obj
,
'dec_
obj
'
:
dec_
obj
,
'ra_
cen
'
:
ra_
cen
,
'dec_
cen
'
:
dec_
cen
,
'radius'
:
radius
,
'object_name'
:
object_name
,
'obs_time_start'
:
None
,
...
...
tests/test_level1.py
View file @
200d66e0
...
...
@@ -8,7 +8,7 @@ class Level1TestCase(unittest.TestCase):
pass
def
test_find
(
self
):
result
=
level1
.
find
()
result
=
level1
.
find
(
module_id
=
'MSC'
,
obs_time
=
(
"2024-01-01 12:12:12"
,
"2024-06-30 12:12:12"
),
dataset
=
'msc-v093'
)
print
(
result
)
self
.
assertEqual
(
result
.
code
,
200
,
"error code: "
+
str
(
result
.
code
))
self
.
assertIsNotNone
(
result
.
data
,
"error message: "
+
result
.
message
)
...
...
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