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
d7ba5b77
Commit
d7ba5b77
authored
Jun 27, 2025
by
Wei Shoulin
Browse files
feat(plan): 为 count_plan_level0 函数添加可选参数
- 在 count_plan_level0 函数中添加了 obs_id 和 prc_status 两个可选参数
parent
b217db2c
Pipeline
#9035
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_client/plan.py
View file @
d7ba5b77
...
...
@@ -120,7 +120,9 @@ def count_plan_level0(
instrument
:
Literal
[
'MSC'
,
'IFS'
,
'MCI'
,
'HSTDM'
,
'CPIC'
],
obs_group
:
str
,
obs_type
:
str
,
dataset
:
str
)
->
Result
:
dataset
:
str
,
obs_id
:
Optional
[
str
]
=
None
,
prc_status
:
Optional
[
int
]
=
None
)
->
Result
:
"""
统计编排和0级数据数量
...
...
@@ -129,6 +131,8 @@ def count_plan_level0(
obs_group (str): 观测组.
obs_type (str): 观测类型,如主巡天宽场、TOO观测、定标星场等等.
dataset (str): 数据集名称.
obs_id (Optional[str]): 观测ID. Defaults to None.
prc_status (Optional[int]): 处理状态. Defaults to None.
Returns:
Result: 操作的结果对象,包含操作是否成功以及相关的错误信息,成功返回数据对象,如:
...
...
@@ -139,5 +143,7 @@ def count_plan_level0(
'instrument'
:
instrument
,
'obs_type'
:
obs_type
,
'dataset'
:
dataset
,
'obs_id'
:
obs_id
,
'prc_status'
:
prc_status
}
return
request
.
post
(
"/api/plan/count"
,
params
)
\ No newline at end of file
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