Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/murfey/util/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,12 @@ class ProcessingJob(SQLModel, table=True): # type: ignore
refine3ds: List["Refine3D"] = Relationship(
back_populates="processing_job", sa_relationship_kwargs={"cascade": "delete"}
)
bfactor_parameters: List["BFactorParameters"] = Relationship(
back_populates="processing_job", sa_relationship_kwargs={"cascade": "delete"}
)
bfactors: List["BFactors"] = Relationship(
back_populates="processing_job", sa_relationship_kwargs={"cascade": "delete"}
)


class PreprocessStash(SQLModel, table=True): # type: ignore
Expand Down Expand Up @@ -810,13 +816,17 @@ class BFactorParameters(SQLModel, table=True): # type: ignore
class_number: int
mask_file: str
run: bool = True
processing_job: Optional[ProcessingJob] = Relationship(
back_populates="bfactor_parameters"
)


class BFactors(SQLModel, table=True): # type: ignore
bfactor_directory: str = Field(primary_key=True)
pj_id: int = Field(primary_key=True, foreign_key="processingjob.processingJobId")
number_of_particles: int
resolution: float
processing_job: Optional[ProcessingJob] = Relationship(back_populates="bfactors")


class MotionCorrection(SQLModel, table=True): # type: ignore
Expand Down