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
7ab9acee
Commit
7ab9acee
authored
Jun 08, 2021
by
Wei Shoulin
Browse files
mc3
parent
5cff1b93
Changes
3
Hide whitespace changes
Inline
Side-by-side
csst_dfs_commons/models/common.py
View file @
7ab9acee
...
...
@@ -2,7 +2,8 @@ import dataclasses
def
from_proto_model_list
(
clazz
,
records
):
return
[
clazz
().
from_proto_model
(
r
)
for
r
in
records
]
def
from_dict_list
(
clazz
,
records
):
return
[
clazz
().
from_dict
(
r
)
for
r
in
records
]
@
dataclasses
.
dataclass
class
BaseModel
:
...
...
csst_dfs_commons/models/ifs.py
View file @
7ab9acee
...
...
@@ -7,7 +7,7 @@ class Level1Record(BaseModel):
id
:
int
=
0
raw_id
:
int
=
0
data_type
:
str
=
""
or_sci_id
:
int
=
0
c
or_sci_id
:
int
=
0
prc_params
:
str
=
""
flat_id
:
int
=
0
dark_id
:
int
=
0
...
...
csst_dfs_commons/models/msc.py
View file @
7ab9acee
...
...
@@ -7,7 +7,7 @@ class Level1Record(BaseModel):
id
:
int
=
0
raw_id
:
int
=
0
data_type
:
str
=
""
or_sci_id
:
int
=
0
c
or_sci_id
:
int
=
0
prc_params
:
str
=
""
flat_id
:
int
=
0
dark_id
:
int
=
0
...
...
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