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-commons
Commits
619a2697
Commit
619a2697
authored
Feb 14, 2023
by
Wei Shoulin
Browse files
rm module level1
parent
2b8d32e5
Changes
7
Show whitespace changes
Inline
Side-by-side
csst_dfs_commons/models/cpic.py
View file @
619a2697
...
@@ -2,29 +2,3 @@ import dataclasses
...
@@ -2,29 +2,3 @@ import dataclasses
from
typing
import
Dict
from
typing
import
Dict
from
.common
import
BaseModel
,
default_field
from
.common
import
BaseModel
,
default_field
@
dataclasses
.
dataclass
class
Level1Record
(
BaseModel
):
id
:
int
=
0
level0_id
:
str
=
""
data_type
:
str
=
""
prc_params
:
str
=
""
filename
:
str
=
""
file_path
:
str
=
""
qc1_status
:
int
=
0
qc1_time
:
str
=
""
prc_status
:
int
=
0
prc_time
:
str
=
""
create_time
:
str
=
""
pipeline_id
:
str
=
""
refs
:
Dict
[
str
,
int
]
=
default_field
({})
@
dataclasses
.
dataclass
class
Level1PrcRecord
(
BaseModel
):
id
:
int
=
0
level1_id
:
int
=
0
pipeline_id
:
str
=
""
prc_module
:
str
=
""
params_file_path
:
str
=
""
prc_status
:
int
=
0
prc_time
:
str
=
""
result_file_path
:
str
=
""
csst_dfs_commons/models/facility.py
View file @
619a2697
...
@@ -91,23 +91,13 @@ class Level2ProducerRuning(BaseModel):
...
@@ -91,23 +91,13 @@ class Level2ProducerRuning(BaseModel):
create_time
:
str
=
""
create_time
:
str
=
""
update_time
:
str
=
""
update_time
:
str
=
""
@
dataclasses
.
dataclass
class
Level0PrcRecord
(
BaseModel
):
id
:
int
=
0
level0_id
:
str
=
""
pipeline_id
:
str
=
""
prc_module
:
str
=
""
params_file_path
:
str
=
""
prc_status
:
int
=
0
prc_time
:
str
=
""
result_file_path
:
str
=
""
@
dataclasses
.
dataclass
@
dataclasses
.
dataclass
class
Level0Record
(
BaseModel
):
class
Level0Record
(
BaseModel
):
id
:
int
=
0
id
:
int
=
0
level0_id
:
str
=
""
level0_id
:
str
=
""
obs_id
:
str
=
""
obs_id
:
str
=
""
detector_no
:
str
=
""
detector_no
:
str
=
""
module_id
:
str
=
""
filter
:
str
=
""
filter
:
str
=
""
obs_type
:
str
=
""
obs_type
:
str
=
""
obs_time
:
str
=
""
obs_time
:
str
=
""
...
@@ -123,20 +113,43 @@ class Level0Record(BaseModel):
...
@@ -123,20 +113,43 @@ class Level0Record(BaseModel):
header
:
Dict
[
str
,
object
]
=
default_field
({})
header
:
Dict
[
str
,
object
]
=
default_field
({})
@
dataclasses
.
dataclass
@
dataclasses
.
dataclass
class
CalMerge
Record
(
BaseModel
):
class
Level0Prc
Record
(
BaseModel
):
id
:
int
=
0
id
:
int
=
0
cal_id
:
str
=
""
level0_id
:
str
=
""
detector_no
:
str
=
""
pipeline_id
:
str
=
""
ref_type
:
str
=
""
prc_module
:
str
=
""
obs_time
:
str
=
""
params_file_path
:
str
=
""
exp_time
:
float
=
0
prc_status
:
int
=
0
filename
:
str
=
""
prc_time
:
str
=
""
result_file_path
:
str
=
""
@
dataclasses
.
dataclass
class
Level1Record
(
BaseModel
):
id
:
int
=
0
level0_id
:
str
=
""
data_type
:
str
=
""
cor_sci_id
:
int
=
0
module_id
:
str
=
""
prc_params
:
str
=
""
filter
:
str
=
""
filename
:
str
=
""
file_path
:
str
=
""
file_path
:
str
=
""
qc1_status
:
int
=
0
qc1_status
:
int
=
0
qc1_time
:
str
=
""
qc1_time
:
str
=
""
prc_status
:
int
=
0
prc_status
:
int
=
0
prc_time
:
str
=
""
prc_time
:
str
=
""
prc_time
:
str
=
""
create_time
:
str
=
""
create_time
:
str
=
""
level0_ids
:
list
=
dataclasses
.
field
(
default_factory
=
list
)
pipeline_id
:
str
=
""
header
:
Dict
[
str
,
object
]
=
default_field
({})
refs
:
Dict
[
str
,
str
]
=
default_field
({})
@
dataclasses
.
dataclass
class
Level1PrcRecord
(
BaseModel
):
id
:
int
=
0
level1_id
:
int
=
0
pipeline_id
:
str
=
""
prc_module
:
str
=
""
params_file_path
:
str
=
""
prc_status
:
int
=
0
prc_time
:
str
=
""
result_file_path
:
str
=
""
\ No newline at end of file
csst_dfs_commons/models/hstdm.py
View file @
619a2697
...
@@ -2,30 +2,3 @@ import dataclasses
...
@@ -2,30 +2,3 @@ import dataclasses
from
typing
import
Dict
from
typing
import
Dict
from
.common
import
BaseModel
,
default_field
from
.common
import
BaseModel
,
default_field
@
dataclasses
.
dataclass
class
Level1Record
(
BaseModel
):
id
:
int
=
0
level0_id
:
str
=
""
data_type
:
str
=
""
cor_sci_id
:
int
=
0
prc_params
:
str
=
""
filename
:
str
=
""
file_path
:
str
=
""
qc1_status
:
int
=
0
qc1_time
:
str
=
""
prc_status
:
int
=
0
prc_time
:
str
=
""
create_time
:
str
=
""
pipeline_id
:
str
=
""
refs
:
Dict
[
str
,
int
]
=
default_field
({})
@
dataclasses
.
dataclass
class
Level1PrcRecord
(
BaseModel
):
id
:
int
=
0
level1_id
:
int
=
0
pipeline_id
:
str
=
""
prc_module
:
str
=
""
params_file_path
:
str
=
""
prc_status
:
int
=
0
prc_time
:
str
=
""
result_file_path
:
str
=
""
csst_dfs_commons/models/ifs.py
View file @
619a2697
...
@@ -2,30 +2,3 @@ import dataclasses
...
@@ -2,30 +2,3 @@ import dataclasses
from
typing
import
Dict
from
typing
import
Dict
from
.common
import
BaseModel
,
default_field
from
.common
import
BaseModel
,
default_field
@
dataclasses
.
dataclass
class
Level1Record
(
BaseModel
):
id
:
int
=
0
level0_id
:
str
=
""
data_type
:
str
=
""
cor_sci_id
:
int
=
0
prc_params
:
str
=
""
filename
:
str
=
""
file_path
:
str
=
""
qc1_status
:
int
=
0
qc1_time
:
str
=
""
prc_status
:
int
=
0
prc_time
:
str
=
""
create_time
:
str
=
""
pipeline_id
:
str
=
""
refs
:
Dict
[
str
,
int
]
=
default_field
({})
@
dataclasses
.
dataclass
class
Level1PrcRecord
(
BaseModel
):
id
:
int
=
0
level1_id
:
int
=
0
pipeline_id
:
str
=
""
prc_module
:
str
=
""
params_file_path
:
str
=
""
prc_status
:
int
=
0
prc_time
:
str
=
""
result_file_path
:
str
=
""
csst_dfs_commons/models/mci.py
View file @
619a2697
import
dataclasses
import
dataclasses
from
typing
import
Dict
from
typing
import
Dict
from
.common
import
BaseModel
,
default_field
from
.common
import
BaseModel
,
default_field
@
dataclasses
.
dataclass
class
Level1Record
(
BaseModel
):
id
:
int
=
0
level0_id
:
str
=
""
data_type
:
str
=
""
cor_sci_id
:
int
=
0
prc_params
:
str
=
""
filename
:
str
=
""
file_path
:
str
=
""
qc1_status
:
int
=
0
qc1_time
:
str
=
""
prc_status
:
int
=
0
prc_time
:
str
=
""
create_time
:
str
=
""
pipeline_id
:
str
=
""
refs
:
Dict
[
str
,
int
]
=
default_field
({})
@
dataclasses
.
dataclass
class
Level1PrcRecord
(
BaseModel
):
id
:
int
=
0
level1_id
:
int
=
0
pipeline_id
:
str
=
""
prc_module
:
str
=
""
params_file_path
:
str
=
""
prc_status
:
int
=
0
prc_time
:
str
=
""
result_file_path
:
str
=
""
csst_dfs_commons/models/msc.py
View file @
619a2697
...
@@ -2,35 +2,6 @@ import dataclasses
...
@@ -2,35 +2,6 @@ import dataclasses
from
typing
import
Dict
from
typing
import
Dict
from
.common
import
BaseModel
,
default_field
from
.common
import
BaseModel
,
default_field
@
dataclasses
.
dataclass
class
Level1Record
(
BaseModel
):
id
:
int
=
0
level0_id
:
str
=
""
data_type
:
str
=
""
cor_sci_id
:
int
=
0
prc_params
:
str
=
""
filter
:
str
=
""
filename
:
str
=
""
file_path
:
str
=
""
qc1_status
:
int
=
0
qc1_time
:
str
=
""
prc_status
:
int
=
0
prc_time
:
str
=
""
create_time
:
str
=
""
pipeline_id
:
str
=
""
refs
:
Dict
[
str
,
int
]
=
default_field
({})
@
dataclasses
.
dataclass
class
Level1PrcRecord
(
BaseModel
):
id
:
int
=
0
level1_id
:
int
=
0
pipeline_id
:
str
=
""
prc_module
:
str
=
""
params_file_path
:
str
=
""
prc_status
:
int
=
0
prc_time
:
str
=
""
result_file_path
:
str
=
""
@
dataclasses
.
dataclass
@
dataclasses
.
dataclass
class
Level2Record
(
BaseModel
):
class
Level2Record
(
BaseModel
):
id
:
int
=
0
id
:
int
=
0
...
...
csst_dfs_commons/models/sls.py
View file @
619a2697
...
@@ -2,23 +2,6 @@ import dataclasses
...
@@ -2,23 +2,6 @@ import dataclasses
from
typing
import
Dict
from
typing
import
Dict
from
.common
import
BaseModel
,
default_field
from
.common
import
BaseModel
,
default_field
@
dataclasses
.
dataclass
class
Level1Record
(
BaseModel
):
id
:
int
=
0
level0_id
:
str
=
""
data_type
:
str
=
""
prc_params
:
str
=
""
filter
:
str
=
""
filename
:
str
=
""
file_path
:
str
=
""
qc1_status
:
int
=
0
qc1_time
:
str
=
""
prc_status
:
int
=
0
prc_time
:
str
=
""
create_time
:
str
=
""
pipeline_id
:
str
=
""
refs
:
Dict
[
str
,
int
]
=
default_field
({})
@
dataclasses
.
dataclass
@
dataclasses
.
dataclass
class
Level2Spectra
(
BaseModel
):
class
Level2Spectra
(
BaseModel
):
id
:
int
=
0
id
:
int
=
0
...
@@ -34,14 +17,3 @@ class Level2Spectra(BaseModel):
...
@@ -34,14 +17,3 @@ class Level2Spectra(BaseModel):
prc_time
:
str
=
""
prc_time
:
str
=
""
create_time
:
str
=
""
create_time
:
str
=
""
pipeline_id
:
str
=
""
pipeline_id
:
str
=
""
@
dataclasses
.
dataclass
class
Level1PrcRecord
(
BaseModel
):
id
:
int
=
0
level1_id
:
int
=
0
pipeline_id
:
str
=
""
prc_module
:
str
=
""
params_file_path
:
str
=
""
prc_status
:
int
=
0
prc_time
:
str
=
""
result_file_path
:
str
=
""
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