@@ -340,7 +340,7 @@ def _build_file_panel(self):
340340
341341 lay .addWidget (QtWidgets .QLabel ("Folder" ), 0 , 1 )
342342 self .folder_edit = QtWidgets .QLineEdit (self .folder )
343- self .folder_edit .setMaximumWidth ( 150 )
343+ self .folder_edit .setMinimumWidth ( 160 )
344344 lay .addWidget (self .folder_edit , 0 , 2 )
345345
346346 btn_browse = QtWidgets .QPushButton ("Browse" )
@@ -349,17 +349,17 @@ def _build_file_panel(self):
349349
350350 lay .addWidget (QtWidgets .QLabel ("FNStem" ), 0 , 4 )
351351 self .fnstem_edit = QtWidgets .QLineEdit (self .fnstem )
352- self .fnstem_edit .setMaximumWidth (120 )
352+ self .fnstem_edit .setMinimumWidth (120 )
353353 lay .addWidget (self .fnstem_edit , 0 , 5 )
354354
355355 lay .addWidget (QtWidgets .QLabel ("NrPixY" ), 1 , 0 )
356356 self .ny_edit = QtWidgets .QLineEdit (str (self .ny ))
357- self .ny_edit .setMaximumWidth ( 60 )
357+ self .ny_edit .setMinimumWidth ( 70 )
358358 lay .addWidget (self .ny_edit , 1 , 1 )
359359
360360 lay .addWidget (QtWidgets .QLabel ("NrPixZ" ), 1 , 2 )
361361 self .nz_edit = QtWidgets .QLineEdit (str (self .nz ))
362- self .nz_edit .setMaximumWidth ( 60 )
362+ self .nz_edit .setMinimumWidth ( 70 )
363363 lay .addWidget (self .nz_edit , 1 , 3 )
364364 return grp
365365
@@ -379,17 +379,17 @@ def _build_image_panel(self):
379379
380380 lay .addWidget (QtWidgets .QLabel ("nDist" ), 0 , 4 )
381381 self .ndist_edit = QtWidgets .QLineEdit (str (self .n_distances ))
382- self .ndist_edit .setMaximumWidth ( 30 )
382+ self .ndist_edit .setMinimumWidth ( 50 )
383383 lay .addWidget (self .ndist_edit , 0 , 5 )
384384
385385 lay .addWidget (QtWidgets .QLabel ("nFl/D" ), 0 , 6 )
386386 self .nfiles_edit = QtWidgets .QLineEdit (str (self .n_files_per_dist ))
387- self .nfiles_edit .setMaximumWidth ( 40 )
387+ self .nfiles_edit .setMinimumWidth ( 55 )
388388 lay .addWidget (self .nfiles_edit , 0 , 7 )
389389
390390 lay .addWidget (QtWidgets .QLabel ("PxSz" ), 1 , 0 )
391391 self .px_edit = QtWidgets .QLineEdit (str (self .pixel_size ))
392- self .px_edit .setMaximumWidth ( 50 )
392+ self .px_edit .setMinimumWidth ( 60 )
393393 lay .addWidget (self .px_edit , 1 , 1 )
394394 return grp
395395
@@ -399,7 +399,7 @@ def _build_processing_panel(self):
399399
400400 lay .addWidget (QtWidgets .QLabel ("StartNr" ), 0 , 0 )
401401 self .startframe_edit = QtWidgets .QLineEdit (str (self .start_frame_nr ))
402- self .startframe_edit .setMaximumWidth ( 50 )
402+ self .startframe_edit .setMinimumWidth ( 60 )
403403 lay .addWidget (self .startframe_edit , 0 , 1 )
404404
405405 btn_median = QtWidgets .QPushButton ("CalcMedian" )
@@ -414,17 +414,17 @@ def _build_processing_panel(self):
414414
415415 lay .addWidget (QtWidgets .QLabel ("Lsd(μm)" ), 1 , 0 )
416416 self .lsd_edit = QtWidgets .QLineEdit (str (self .lsd ))
417- self .lsd_edit .setMaximumWidth ( 80 )
417+ self .lsd_edit .setMinimumWidth ( 90 )
418418 lay .addWidget (self .lsd_edit , 1 , 1 , 1 , 2 )
419419
420420 lay .addWidget (QtWidgets .QLabel ("MinI" ), 2 , 0 )
421421 self .min_intensity_edit = QtWidgets .QLineEdit ("0" )
422- self .min_intensity_edit .setMaximumWidth ( 60 )
422+ self .min_intensity_edit .setMinimumWidth ( 70 )
423423 lay .addWidget (self .min_intensity_edit , 2 , 1 )
424424
425425 lay .addWidget (QtWidgets .QLabel ("MaxI" ), 2 , 2 )
426426 self .max_intensity_edit = QtWidgets .QLineEdit ("1000" )
427- self .max_intensity_edit .setMaximumWidth ( 60 )
427+ self .max_intensity_edit .setMinimumWidth ( 70 )
428428 lay .addWidget (self .max_intensity_edit , 2 , 3 )
429429
430430 apply_btn = QtWidgets .QPushButton ("Apply" )
@@ -491,10 +491,10 @@ def _build_mic_panel(self):
491491
492492 lay .addWidget (QtWidgets .QLabel ("ConfCut" ), row , 0 )
493493 self .cut_conf_edit = QtWidgets .QLineEdit ("0" )
494- self .cut_conf_edit .setMaximumWidth ( 40 )
494+ self .cut_conf_edit .setMinimumWidth ( 55 )
495495 lay .addWidget (self .cut_conf_edit , row , 1 )
496496 self .max_conf_edit = QtWidgets .QLineEdit ("1" )
497- self .max_conf_edit .setMaximumWidth ( 40 )
497+ self .max_conf_edit .setMinimumWidth ( 55 )
498498 lay .addWidget (self .max_conf_edit , row , 2 )
499499
500500 btn_grain = QtWidgets .QPushButton ("LoadGrain" )
@@ -692,6 +692,7 @@ def _load_and_display(self):
692692 else :
693693 self .imarr2 = imarr
694694
695+ self .imarr2 = self .imarr2 [::- 1 , ::- 1 ].copy ()
695696 self .image_view .set_image_data (self .imarr2 .astype (float ))
696697 self .frame_label .setText (f"Frame { self .frame_nr } Dist { self .dist } " )
697698
@@ -1072,7 +1073,7 @@ def _build_ui(self):
10721073 self .om_edits = []
10731074 for i in range (9 ):
10741075 e = QtWidgets .QLineEdit (str (self .viewer .om [i ]))
1075- e .setMaximumWidth ( 65 )
1076+ e .setMinimumWidth ( 75 )
10761077 om_row .addWidget (e )
10771078 self .om_edits .append (e )
10781079 lay .addRow ("Orient. Matrix:" , om_row )
@@ -1082,7 +1083,7 @@ def _build_ui(self):
10821083 self .pos_edits = []
10831084 for i in range (3 ):
10841085 e = QtWidgets .QLineEdit (str (self .viewer .pos [i ]))
1085- e .setMaximumWidth ( 80 )
1086+ e .setMinimumWidth ( 90 )
10861087 pos_row .addWidget (e )
10871088 self .pos_edits .append (e )
10881089 lay .addRow ("Position (μm):" , pos_row )
@@ -1092,7 +1093,7 @@ def _build_ui(self):
10921093 self .lc_edits = []
10931094 for i in range (6 ):
10941095 e = QtWidgets .QLineEdit (str (self .viewer .latC [i ]))
1095- e .setMaximumWidth ( 65 )
1096+ e .setMinimumWidth ( 75 )
10961097 lc_row .addWidget (e )
10971098 self .lc_edits .append (e )
10981099 lay .addRow ("Lattice Const:" , lc_row )
0 commit comments