Skip to content

Commit

Permalink
fixup! Add PixelMapping
Browse files Browse the repository at this point in the history
  • Loading branch information
torbsorb committed Dec 15, 2023
1 parent a44f5db commit aedd840
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/experimental/test_pixel_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ def test_pixel_mapping(file_camera):
blue_subsample2x2_settings = Settings()
blue_subsample2x2_settings.acquisitions.append(Settings.Acquisition())
blue_subsample2x2_settings.sampling.pixel = Settings.Sampling.Pixel.blueSubsample2x2
pixel_mapping_handle = pixel_mapping(camera=file_camera, settings=blue_subsample2x2_settings)
pixel_mapping_handle = pixel_mapping(
camera=file_camera, settings=blue_subsample2x2_settings
)
assert pixel_mapping_handle.row_stride == 2
assert pixel_mapping_handle.col_stride == 2
assert pixel_mapping_handle.row_offset == 0.0
Expand All @@ -26,7 +28,9 @@ def test_pixel_mapping(file_camera):
red_subsample2x2_settings = Settings()
red_subsample2x2_settings.acquisitions.append(Settings.Acquisition())
red_subsample2x2_settings.sampling.pixel = Settings.Sampling.Pixel.redSubsample2x2
pixel_mapping_handle = pixel_mapping(camera=file_camera, settings=red_subsample2x2_settings)
pixel_mapping_handle = pixel_mapping(
camera=file_camera, settings=red_subsample2x2_settings
)
assert pixel_mapping_handle.row_stride == 2
assert pixel_mapping_handle.col_stride == 2
assert pixel_mapping_handle.row_offset == 1.0
Expand Down

0 comments on commit aedd840

Please sign in to comment.