Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/pyvcam/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,10 @@ def bin_x(self):
@bin_x.setter
def bin_x(self, value):
# Will raise ValueError if incompatible binning is set
if value in self.read_enum(const.PARAM_BINNING_SER).values():
if (
not self.check_param(const.PARAM_BINNING_SER) or
value in self.read_enum(const.PARAM_BINNING_SER).values()
):
for roi in self.__rois:
roi.sbin = value
return
Expand All @@ -868,7 +871,10 @@ def bin_y(self):
@bin_y.setter
def bin_y(self, value):
# Will raise ValueError if incompatible binning is set
if value in self.read_enum(const.PARAM_BINNING_PAR).values():
if (
not self.check_param(const.PARAM_BINNING_PAR) or
value in self.read_enum(const.PARAM_BINNING_PAR).values()
):
for roi in self.__rois:
roi.pbin = value
return
Expand Down