Skip to content

Commit

Permalink
Update binning parameter names for image processing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Jun 19, 2024
1 parent 1c092ce commit d75b5f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cdl/tests/scenarios/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def run_image_computations(
param = dlp.ContourShapeParam()
panel.processor.compute_contour_shape(param)

param = dlp.BinningParam.create(binning_x=2, binning_y=2, operation="average")
param = dlp.BinningParam.create(sx=2, sy=2, operation="average")
panel.processor.compute_binning(param)

# Test histogram
Expand Down
2 changes: 1 addition & 1 deletion plugins/examples/cdl_example_imageproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def generate_test_image(self) -> None:
def preprocess(self) -> None:
"""Preprocess image"""
panel = self.imagepanel
param = cdl.param.BinningParam.create(binning_x=2, binning_y=2)
param = cdl.param.BinningParam.create(sx=2, sy=2)
panel.processor.compute_binning(param)
panel.processor.compute_moving_median(cdl.param.MovingMedianParam.create(n=5))

Expand Down

0 comments on commit d75b5f3

Please sign in to comment.