@@ -459,12 +459,18 @@ class ProcessingJob(SQLModel, table=True): # type: ignore
459459 spa_parameters : List ["SPARelionParameters" ] = Relationship (
460460 back_populates = "processing_job" , sa_relationship_kwargs = {"cascade" : "delete" }
461461 )
462- spa_feedback_parameters : List ["SPAFeedbackParameters" ] = Relationship (
463- back_populates = "processing_job" , sa_relationship_kwargs = {"cascade" : "delete" }
462+ classification_feedback_parameters : List ["ClassificationFeedbackParameters" ] = (
463+ Relationship (
464+ back_populates = "processing_job" ,
465+ sa_relationship_kwargs = {"cascade" : "delete" },
466+ )
464467 )
465468 ctf_parameters : List ["CtfParameters" ] = Relationship (
466469 back_populates = "processing_job" , sa_relationship_kwargs = {"cascade" : "delete" }
467470 )
471+ tomogram_picks : List ["TomogramPicks" ] = Relationship (
472+ back_populates = "processing_job" , sa_relationship_kwargs = {"cascade" : "delete" }
473+ )
468474 class2d_parameters : List ["Class2DParameters" ] = Relationship (
469475 back_populates = "processing_job" , sa_relationship_kwargs = {"cascade" : "delete" }
470476 )
@@ -514,6 +520,7 @@ class TomographyProcessingParameters(SQLModel, table=True): # type: ignore
514520 frame_count : int
515521 tilt_axis : float
516522 voltage : int
523+ particle_diameter : Optional [float ] = None
517524 eer_fractionation_file : Optional [str ] = None
518525 motion_corr_binning : int = 1
519526 gain_ref : Optional [str ] = None
@@ -557,8 +564,10 @@ class MurfeyLedger(SQLModel, table=True): # type: ignore
557564 refine_parameters : Optional ["RefineParameters" ] = Relationship (
558565 back_populates = "murfey_ledger" , sa_relationship_kwargs = {"cascade" : "delete" }
559566 )
560- spa_feedback_parameters : Optional ["SPAFeedbackParameters" ] = Relationship (
561- back_populates = "murfey_ledger" , sa_relationship_kwargs = {"cascade" : "delete" }
567+ classification_feedback_parameters : Optional ["ClassificationFeedbackParameters" ] = (
568+ Relationship (
569+ back_populates = "murfey_ledger" , sa_relationship_kwargs = {"cascade" : "delete" }
570+ )
562571 )
563572 movies : Optional ["Movie" ] = Relationship (
564573 back_populates = "murfey_ledger" , sa_relationship_kwargs = {"cascade" : "delete" }
@@ -671,6 +680,18 @@ class CtfParameters(SQLModel, table=True): # type: ignore
671680 )
672681
673682
683+ class TomogramPicks (SQLModel , table = True ): # type: ignore
684+ id : Optional [int ] = Field (default = None , primary_key = True )
685+ pj_id : int = Field (foreign_key = "processingjob.id" )
686+ tomogram : str
687+ cbox_3d : str
688+ particle_count : int
689+ tomogram_pixel_size : float
690+ processing_job : Optional [ProcessingJob ] = Relationship (
691+ back_populates = "tomogram_picks"
692+ )
693+
694+
674695class ParticleSizes (SQLModel , table = True ): # type: ignore
675696 id : Optional [int ] = Field (default = None , primary_key = True )
676697 pj_id : int = Field (foreign_key = "processingjob.id" )
@@ -700,7 +721,7 @@ class SPARelionParameters(SQLModel, table=True): # type: ignore
700721 )
701722
702723
703- class SPAFeedbackParameters (SQLModel , table = True ): # type: ignore
724+ class ClassificationFeedbackParameters (SQLModel , table = True ): # type: ignore
704725 pj_id : int = Field (primary_key = True , foreign_key = "processingjob.id" )
705726 estimate_particle_diameter : bool = True
706727 hold_class2d : bool = False
@@ -714,10 +735,10 @@ class SPAFeedbackParameters(SQLModel, table=True): # type: ignore
714735 picker_murfey_id : Optional [int ] = Field (default = None , foreign_key = "murfeyledger.id" )
715736 picker_ispyb_id : Optional [int ] = None
716737 processing_job : Optional [ProcessingJob ] = Relationship (
717- back_populates = "spa_feedback_parameters "
738+ back_populates = "classification_feedback_parameters "
718739 )
719740 murfey_ledger : Optional [MurfeyLedger ] = Relationship (
720- back_populates = "spa_feedback_parameters "
741+ back_populates = "classification_feedback_parameters "
721742 )
722743
723744
0 commit comments