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
11f21237
Commit
11f21237
authored
Jan 01, 2025
by
Wei Shoulin
Browse files
param udpate
parent
e2cfb184
Pipeline
#7663
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_client/level1.py
View file @
11f21237
...
@@ -154,13 +154,13 @@ def update_prc_status(level1_id: str, file_type: str, prc_status: int, batch_id:
...
@@ -154,13 +154,13 @@ def update_prc_status(level1_id: str, file_type: str, prc_status: int, batch_id:
def
write
(
local_file
:
Union
[
IO
,
str
],
def
write
(
local_file
:
Union
[
IO
,
str
],
module_id
:
Literal
[
'MSC'
,
'IFS'
,
'MCI'
,
'HSTDM'
,
'CPIC'
],
module_id
:
Literal
[
'MSC'
,
'IFS'
,
'MCI'
,
'HSTDM'
,
'CPIC'
],
level0_id
:
Optional
[
str
],
level1_id
:
str
,
level1_id
:
Optional
[
str
],
file_type
:
str
,
file_type
:
str
,
file_name
:
str
,
file_name
:
str
,
pipeline_id
:
str
,
pipeline_id
:
str
,
pmapname
:
str
,
pmapname
:
str
,
build
:
int
,
build
:
int
,
level0_id
:
Optional
[
str
]
=
None
,
dataset
:
str
=
constants
.
DEFAULT_DATASET
,
dataset
:
str
=
constants
.
DEFAULT_DATASET
,
batch_id
:
str
=
constants
.
DEFAULT_BATCH_ID
,
batch_id
:
str
=
constants
.
DEFAULT_BATCH_ID
,
**
extra_kwargs
)
->
Result
:
**
extra_kwargs
)
->
Result
:
...
@@ -171,7 +171,7 @@ def write(local_file: Union[IO, str],
...
@@ -171,7 +171,7 @@ def write(local_file: Union[IO, str],
local_file (Union[IO, str]): 文件路径或文件对象
local_file (Union[IO, str]): 文件路径或文件对象
module_id ['MSC', 'IFS', 'MCI', 'HSTDM', 'CPIC']其中一个,代表: 模块ID
module_id ['MSC', 'IFS', 'MCI', 'HSTDM', 'CPIC']其中一个,代表: 模块ID
level0_id (Optional[str]): 0级数据的ID默认为 None
level0_id (Optional[str]): 0级数据的ID默认为 None
level1_id (
Optional[
str
]
): 1级数据的ID
默认为 None
level1_id (str): 1级数据的ID
file_type (str): 文件类型
file_type (str): 文件类型
file_name (str): 1级数据文件名
file_name (str): 1级数据文件名
pipeline_id (str): 管线ID
pipeline_id (str): 管线ID
...
...
csst_dfs_client/level2.py
View file @
11f21237
...
@@ -147,14 +147,14 @@ def update_prc_status_by_file_name(file_name: str, prc_status: int, batch_id: st
...
@@ -147,14 +147,14 @@ def update_prc_status_by_file_name(file_name: str, prc_status: int, batch_id: st
def
write
(
local_file
:
Union
[
IO
,
str
],
def
write
(
local_file
:
Union
[
IO
,
str
],
module_id
:
Literal
[
'MSC'
,
'IFS'
,
'MCI'
,
'HSTDM'
,
'CPIC'
],
module_id
:
Literal
[
'MSC'
,
'IFS'
,
'MCI'
,
'HSTDM'
,
'CPIC'
],
level0_id
:
Optional
[
str
],
level2_id
:
str
,
level1_id
:
Optional
[
str
],
level2_id
:
Optional
[
str
],
brick_id
:
Optional
[
int
],
data_type
:
str
,
data_type
:
str
,
file_name
:
str
,
file_name
:
str
,
pipeline_id
:
str
,
pipeline_id
:
str
,
build
:
int
,
build
:
int
,
level0_id
:
Optional
[
str
]
=
None
,
level1_id
:
Optional
[
str
]
=
None
,
brick_id
:
Optional
[
int
]
=
0
,
dataset
:
str
=
constants
.
DEFAULT_DATASET
,
dataset
:
str
=
constants
.
DEFAULT_DATASET
,
batch_id
:
str
=
constants
.
DEFAULT_BATCH_ID
,
batch_id
:
str
=
constants
.
DEFAULT_BATCH_ID
,
**
extra_kwargs
)
->
Result
:
**
extra_kwargs
)
->
Result
:
...
@@ -164,14 +164,14 @@ def write(local_file: Union[IO, str],
...
@@ -164,14 +164,14 @@ def write(local_file: Union[IO, str],
Args:
Args:
local_file (Union[IO, str]): 文件路径 或 文件对象
local_file (Union[IO, str]): 文件路径 或 文件对象
module_id ['MSC', 'IFS', 'MCI', 'HSTDM', 'CPIC']其中一个,代表: 模块ID
module_id ['MSC', 'IFS', 'MCI', 'HSTDM', 'CPIC']其中一个,代表: 模块ID
level0_id (Optional[str]): 0级数据的ID默认为 None
level2_id (str): 2级数据的ID
level1_id (Optional[str]): 1级数据的ID默认为 None
level2_id (Optional[str]): 2级数据的ID默认为 None
brick_id (Optional[int]): 天区的ID默认为 None
data_type (str): 数据类型,如'csst-msc-l2-mbi-cat'
data_type (str): 数据类型,如'csst-msc-l2-mbi-cat'
file_name (str): 2级数据文件名
file_name (str): 2级数据文件名
pipeline_id (str): 管线ID
pipeline_id (str): 管线ID
build (int): 构建号
build (int): 构建号
level0_id (Optional[str]): 0级数据的ID默认为 None
level1_id (Optional[str]): 1级数据的ID默认为 None
brick_id (Optional[int]): 天区的ID默认为 0
dataset (Optional[str], optional): 数据集名称. Defaults to None.
dataset (Optional[str], optional): 数据集名称. Defaults to None.
batch_id (Optional[str], optional): 最后一次成功的批次ID. Defaults to None.
batch_id (Optional[str], optional): 最后一次成功的批次ID. Defaults to None.
**kwargs: 额外的关键字参数,这些参数将传递给DFS
**kwargs: 额外的关键字参数,这些参数将传递给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