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
441ca2f7
Commit
441ca2f7
authored
Mar 03, 2025
by
Wei Shoulin
Browse files
data_type fix
parent
6bfceb29
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/level2.md
View file @
441ca2f7
...
...
@@ -61,7 +61,7 @@ print(result) # result.data为list类型,包含2级数据文件记录列表
```
python
from
csst_dfs_client
import
level2
result
=
level2
.
update_qc2_status
(
level2_id
=
'some_level2_id'
,
data_type
=
'
SCI
'
,
qc2_status
=
1
,
batch_id
=
'some_batch_id'
)
result
=
level2
.
update_qc2_status
(
level2_id
=
'some_level2_id'
,
data_type
=
'
csst-msc-l2-mbi
'
,
qc2_status
=
1
,
batch_id
=
'some_batch_id'
)
print
(
result
)
```
...
...
@@ -69,7 +69,7 @@ print(result)
```
python
from
csst_dfs_client
import
level2
result
=
level2
.
update_prc_status
(
level2_id
=
'some_level2_id'
,
data_type
=
'
SCI
'
,
prc_status
=
1
,
batch_id
=
'some_batch_id'
)
result
=
level2
.
update_prc_status
(
level2_id
=
'some_level2_id'
,
data_type
=
'
csst-msc-l2-mbi
'
,
prc_status
=
1
,
batch_id
=
'some_batch_id'
)
print
(
result
)
```
...
...
@@ -82,7 +82,7 @@ from csst_dfs_client import level2
local_file_path
=
'/path/to/your/level2_data.fits'
module_id
=
'MSC'
level2_id
=
'some_level2_id'
file
_type
=
'
SCI
'
data
_type
=
'
csst-msc-l2-mbi-cat
'
file_name
=
'level2_data.fits'
dag_id
=
'some_dag_id'
build
=
1
...
...
@@ -92,7 +92,7 @@ dataset = 'default_dataset'
batch_id
=
'default_batch_id'
qc2_status
=
0
result
=
level2
.
write
(
local_file_path
,
module_id
,
level2_id
,
file
_type
,
file_name
,
dag_id
,
build
,
level0_id
,
level1_id
,
dataset
,
batch_id
,
qc2_status
)
result
=
level2
.
write
(
local_file_path
,
module_id
,
level2_id
,
data
_type
,
file_name
,
dag_id
,
build
,
level0_id
,
level1_id
,
dataset
,
batch_id
,
qc2_status
)
print
(
result
)
```
...
...
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