added tabs to logistics frontend
This commit is contained in:
@ -214,3 +214,26 @@ class PuckEvent(Base):
|
||||
timestamp = Column(DateTime, default=datetime.now)
|
||||
|
||||
puck = relationship("Puck", back_populates="events")
|
||||
|
||||
|
||||
# class Results(Base):
|
||||
# __tablename__ = "results"
|
||||
#
|
||||
# id = Column(Integer, primary_key=True, index=True, autoincrement=True)
|
||||
# pgroup = Column(String(255), nullable=False)
|
||||
# sample_id = Column(Integer, ForeignKey("samples.id"), nullable=False)
|
||||
# method = Column(String(255), nullable=False)
|
||||
# #resolution: Column(Float(255), nullable=False)
|
||||
# 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
|
||||
|
@ -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