Commit 200d66e0 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

ra_obj -> ra_cen

parent 14c2a123
......@@ -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] = None,
batch_id: Optional[str] = None,
dataset: str = constants.DEFAULT_DATASET,
batch_id: str = constants.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,
......
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment