@@ -460,12 +460,18 @@ class ProcessingJob(SQLModel, table=True): # type: ignore
460460 spa_parameters : List ["SPARelionParameters" ] = Relationship (
461461 back_populates = "processing_job" , sa_relationship_kwargs = {"cascade" : "delete" }
462462 )
463- spa_feedback_parameters : List ["SPAFeedbackParameters" ] = Relationship (
464- back_populates = "processing_job" , sa_relationship_kwargs = {"cascade" : "delete" }
463+ classification_feedback_parameters : List ["ClassificationFeedbackParameters" ] = (
464+ Relationship (
465+ back_populates = "processing_job" ,
466+ sa_relationship_kwargs = {"cascade" : "delete" },
467+ )
465468 )
466469 ctf_parameters : List ["CtfParameters" ] = Relationship (
467470 back_populates = "processing_job" , sa_relationship_kwargs = {"cascade" : "delete" }
468471 )
472+ tomogram_picks : List ["TomogramPicks" ] = Relationship (
473+ back_populates = "processing_job" , sa_relationship_kwargs = {"cascade" : "delete" }
474+ )
469475 class2d_parameters : List ["Class2DParameters" ] = Relationship (
470476 back_populates = "processing_job" , sa_relationship_kwargs = {"cascade" : "delete" }
471477 )
@@ -515,6 +521,7 @@ class TomographyProcessingParameters(SQLModel, table=True): # type: ignore
515521 frame_count : int
516522 tilt_axis : float
517523 voltage : int
524+ particle_diameter : Optional [float ] = None
518525 eer_fractionation_file : Optional [str ] = None
519526 motion_corr_binning : int = 1
520527 gain_ref : Optional [str ] = None
@@ -558,8 +565,10 @@ class MurfeyLedger(SQLModel, table=True): # type: ignore
558565 refine_parameters : Optional ["RefineParameters" ] = Relationship (
559566 back_populates = "murfey_ledger" , sa_relationship_kwargs = {"cascade" : "delete" }
560567 )
561- spa_feedback_parameters : Optional ["SPAFeedbackParameters" ] = Relationship (
562- back_populates = "murfey_ledger" , sa_relationship_kwargs = {"cascade" : "delete" }
568+ classification_feedback_parameters : Optional ["ClassificationFeedbackParameters" ] = (
569+ Relationship (
570+ back_populates = "murfey_ledger" , sa_relationship_kwargs = {"cascade" : "delete" }
571+ )
563572 )
564573 movies : Optional ["Movie" ] = Relationship (
565574 back_populates = "murfey_ledger" , sa_relationship_kwargs = {"cascade" : "delete" }
@@ -672,6 +681,18 @@ class CtfParameters(SQLModel, table=True): # type: ignore
672681 )
673682
674683
684+ class TomogramPicks (SQLModel , table = True ): # type: ignore
685+ id : Optional [int ] = Field (default = None , primary_key = True )
686+ pj_id : int = Field (foreign_key = "processingjob.id" )
687+ tomogram : str
688+ cbox_3d : str
689+ particle_count : int
690+ tomogram_pixel_size : float
691+ processing_job : Optional [ProcessingJob ] = Relationship (
692+ back_populates = "tomogram_picks"
693+ )
694+
695+
675696class ParticleSizes (SQLModel , table = True ): # type: ignore
676697 id : Optional [int ] = Field (default = None , primary_key = True )
677698 pj_id : int = Field (foreign_key = "processingjob.id" )
@@ -701,7 +722,7 @@ class SPARelionParameters(SQLModel, table=True): # type: ignore
701722 )
702723
703724
704- class SPAFeedbackParameters (SQLModel , table = True ): # type: ignore
725+ class ClassificationFeedbackParameters (SQLModel , table = True ): # type: ignore
705726 pj_id : int = Field (primary_key = True , foreign_key = "processingjob.id" )
706727 estimate_particle_diameter : bool = True
707728 hold_class2d : bool = False
@@ -715,10 +736,10 @@ class SPAFeedbackParameters(SQLModel, table=True): # type: ignore
715736 picker_murfey_id : Optional [int ] = Field (default = None , foreign_key = "murfeyledger.id" )
716737 picker_ispyb_id : Optional [int ] = None
717738 processing_job : Optional [ProcessingJob ] = Relationship (
718- back_populates = "spa_feedback_parameters "
739+ back_populates = "classification_feedback_parameters "
719740 )
720741 murfey_ledger : Optional [MurfeyLedger ] = Relationship (
721- back_populates = "spa_feedback_parameters "
742+ back_populates = "classification_feedback_parameters "
722743 )
723744
724745
0 commit comments