Skip to content

Commit f0505dd

Browse files
author
LAKESIDE\LindaT18
committed
update scaling factor before loading image
1 parent 9afb6b9 commit f0505dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PythonGUI_apps/Image_analysis/Image_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def __init__(self):
6464
self.ui.custom_pixel_size_checkBox.stateChanged.connect(self.switch_custom_pixel_size)
6565
self.ui.update_scaling_factor_pushButton.clicked.connect(self.reload_image)
6666
self.ui.spot_radioButton.toggled.connect(self.update_camera)
67-
self.ui.custom_pixel_size_spinBox.valueChanged.connect(self.update_scaling_factor)
6867

6968
self.update_camera() #initialize camera pixel size
7069
self.update_scaling_factor() #initialize scaling_factor
@@ -87,6 +86,7 @@ def resize_to_scaling_factor(self, image):
8786
"""
8887
Handles loading of image according to scaling_factor
8988
"""
89+
self.update_scaling_factor()
9090

9191
if self.ui.pixera_radioButton.isChecked():
9292
image = self.original_image

0 commit comments

Comments
 (0)