added tabs to logistics frontend
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
from typing import List, Optional, ClassVar
|
||||
from typing import List, Optional
|
||||
from datetime import datetime
|
||||
from pydantic import BaseModel, EmailStr, constr, Field, field_validator
|
||||
from datetime import date
|
||||
@ -362,8 +362,28 @@ class SampleEventResponse(BaseModel):
|
||||
|
||||
|
||||
class Results(BaseModel):
|
||||
id: int
|
||||
pgroup: str
|
||||
sample_id: int
|
||||
method: str
|
||||
resolution: float
|
||||
unit_cell: str
|
||||
spacegroup: str
|
||||
rmerge: float
|
||||
rmeas: float
|
||||
isig: float
|
||||
cc: float
|
||||
cchalf: float
|
||||
completeness: float
|
||||
multiplicity: float
|
||||
nobs: int
|
||||
total_refl: int
|
||||
unique_refl: int
|
||||
comments: Optional[constr(max_length=200)] = None
|
||||
|
||||
# Define attributes for Results here
|
||||
pass
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class ContactCreate(BaseModel):
|
||||
@ -672,7 +692,8 @@ class SetTellPositionRequest(BaseModel):
|
||||
tell: str
|
||||
pucks: List[SetTellPosition]
|
||||
|
||||
from_attributes: ClassVar[bool] = True
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class PuckWithTellPosition(BaseModel):
|
||||
|
Reference in New Issue
Block a user