Commit 7ab9acee authored by Wei Shoulin's avatar Wei Shoulin
Browse files

mc3

parent 5cff1b93
......@@ -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:
......
......@@ -7,7 +7,7 @@ class Level1Record(BaseModel):
id: int = 0
raw_id : int = 0
data_type: str=""
or_sci_id: int = 0
cor_sci_id: int = 0
prc_params: str=""
flat_id: int = 0
dark_id: int = 0
......
......@@ -7,7 +7,7 @@ class Level1Record(BaseModel):
id: int = 0
raw_id : int = 0
data_type: str=""
or_sci_id: int = 0
cor_sci_id: int = 0
prc_params: str=""
flat_id: int = 0
dark_id: int = 0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment