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
6df5b472
Commit
6df5b472
authored
Apr 22, 2022
by
Wei Shoulin
Browse files
brick
parent
e1cf83c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_commons/models/facility.py
View file @
6df5b472
...
...
@@ -37,3 +37,56 @@ class DetectorStatus(BaseModel):
create_time
:
str
=
""
status_time
:
str
=
""
@
dataclasses
.
dataclass
class
Brick
(
BaseModel
):
id
:
int
=
0
ra
:
float
=
0.0
dec
:
float
=
0.0
boundingbox
:
str
=
""
@
dataclasses
.
dataclass
class
BrickObsStatus
(
BaseModel
):
brick_id
:
int
=
0
band
:
str
=
""
cover_num
:
int
=
0
update_time
:
str
=
""
@
dataclasses
.
dataclass
class
BrickLevel1
(
BaseModel
):
brick_id
:
int
=
0
level1_id
:
int
=
0
obs_id
:
str
=
""
module
:
str
=
""
obs_time
:
str
=
""
@
dataclasses
.
dataclass
class
Level2Producer
(
BaseModel
):
id
:
int
=
0
name
:
str
=
""
priority
:
int
=
0
gitlink
:
str
=
""
paramfiles
:
str
=
""
pre_producers
:
list
=
dataclasses
.
field
(
default_factory
=
list
)
create_time
:
str
=
""
update_time
:
str
=
""
@
dataclasses
.
dataclass
class
Level2Job
(
BaseModel
):
id
:
int
=
0
dag
:
str
=
""
status
:
int
=
0
create_time
:
str
=
""
update_time
:
str
=
""
@
dataclasses
.
dataclass
class
Level2ProducerRuning
(
BaseModel
):
id
:
int
=
0
job_id
:
int
=
0
producer_id
:
int
=
0
brick_id
:
int
=
0
start_time
:
str
=
""
end_time
:
str
=
""
prc_status
:
int
=
0
prc_result
:
str
=
""
create_time
:
str
=
""
update_time
:
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