1313
1414class TikeViewController (QWidget ):
1515 def __init__ (
16- self , model : TikeReconstructorLibrary , showAlpha : bool , parent : QWidget | None = None
16+ self , model : TikeReconstructorLibrary , show_alpha : bool , parent : QWidget | None = None
1717 ) -> None :
1818 super ().__init__ (parent )
19- self ._parametersViewController = TikeParametersViewController (
20- model .settings , showAlpha = showAlpha
19+ self ._parameters_view_controller = TikeParametersViewController (
20+ model .settings , show_alpha = show_alpha
2121 )
22- self ._multigridViewController = TikeMultigridViewController (model .multigridSettings )
23- self ._objectCorrectionViewController = TikeObjectCorrectionViewController (
24- model .objectCorrectionSettings
22+ self ._multigrid_view_controller = TikeMultigridViewController (model .multigrid_settings )
23+ self ._object_correction_view_controller = TikeObjectCorrectionViewController (
24+ model .object_correction_settings
2525 )
26- self ._probeCorrectionViewController = TikeProbeCorrectionViewController (
27- model .probeCorrectionSettings
26+ self ._probe_correction_view_controller = TikeProbeCorrectionViewController (
27+ model .probe_correction_settings
2828 )
29- self ._positionCorrectionViewController = TikePositionCorrectionViewController (
30- model .positionCorrectionSettings
29+ self ._position_correction_view_controller = TikePositionCorrectionViewController (
30+ model .position_correction_settings
3131 )
3232
3333 layout = QVBoxLayout ()
34- layout .addWidget (self ._parametersViewController .get_widget ())
35- layout .addWidget (self ._multigridViewController .get_widget ())
36- layout .addWidget (self ._positionCorrectionViewController .get_widget ())
37- layout .addWidget (self ._probeCorrectionViewController .get_widget ())
38- layout .addWidget (self ._objectCorrectionViewController .get_widget ())
34+ layout .addWidget (self ._parameters_view_controller .get_widget ())
35+ layout .addWidget (self ._multigrid_view_controller .get_widget ())
36+ layout .addWidget (self ._position_correction_view_controller .get_widget ())
37+ layout .addWidget (self ._probe_correction_view_controller .get_widget ())
38+ layout .addWidget (self ._object_correction_view_controller .get_widget ())
3939 layout .addStretch ()
4040 self .setLayout (layout )
4141
@@ -49,10 +49,10 @@ def __init__(self, model: TikeReconstructorLibrary) -> None:
4949 def backend_name (self ) -> str :
5050 return 'Tike'
5151
52- def create_view_controller (self , reconstructorName : str ) -> QWidget :
53- if reconstructorName == 'rpie' :
54- viewController = TikeViewController (self ._model , showAlpha = True )
52+ def create_view_controller (self , reconstructor_name : str ) -> QWidget :
53+ if reconstructor_name == 'rpie' :
54+ view_controller = TikeViewController (self ._model , show_alpha = True )
5555 else :
56- viewController = TikeViewController (self ._model , showAlpha = False )
56+ view_controller = TikeViewController (self ._model , show_alpha = False )
5757
58- return viewController
58+ return view_controller
0 commit comments