From 0715bc72effcb6d135403d9fe8569ae890a4a877 Mon Sep 17 00:00:00 2001 From: EricPei20 Date: Fri, 6 Mar 2026 14:30:41 -0800 Subject: [PATCH] Fixed bug in set_binning. --- deapi/client.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deapi/client.py b/deapi/client.py index 48d20db..2dd092c 100644 --- a/deapi/client.py +++ b/deapi/client.py @@ -1010,10 +1010,8 @@ def set_binning(self, bin_x, bin_y, use_hw=True): if prop_hw_bin_y is not False: hw_bin_y = int(prop_hw_bin_y) - if bin_x > 2: - retval &= self.SetProperty("Binning X", bin_x / hw_bin_x) - if bin_y > 2: - retval &= self.SetProperty("Binning Y", bin_y / hw_bin_y) + retval &= self.SetProperty("Binning X", bin_x / hw_bin_x) + retval &= self.SetProperty("Binning Y", bin_y / hw_bin_y) if commandVersion >= 13: retval &= self.SetProperty("Server Normalize Properties", "On")