Skip to content

Commit

Permalink
explicit pixel size in test
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDoornbos committed Oct 3, 2024
1 parent 6c3fdee commit 29382e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test_algorithms_troubleshoot.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def test_measure_modulated_light_dual_phase_stepping_with_noise(
# Aberration and image source
img = np.zeros((64, 64), dtype=np.int16)
img[32, 32] = 100
src = StaticSource(img, 200 * u.nm)
src = StaticSource(img, pixel_size= 200 * u.nm)

# SLM, simulation, camera, ROI detector
slm = SLM(
Expand Down
6 changes: 3 additions & 3 deletions tests/test_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_mock_camera_and_single_roi():
"""
img = np.zeros((1000, 1000), dtype=np.int16)
img[200, 300] = 39.39 # some random float
src = Camera(StaticSource(img, 450 * u.nm))
src = Camera(StaticSource(img, pixel_size= 450 * u.nm))
roi_detector = SingleRoi(
src, pos=(200, 300), radius=0
) # Only measure that specific point
Expand All @@ -38,7 +38,7 @@ def test_microscope_without_magnification(shape):
# construct input image
img = np.zeros(shape, dtype=np.int16)
img[256, 256] = 100
src = Camera(StaticSource(img, 400 * u.nm))
src = Camera(StaticSource(img, pixel_size= 400 * u.nm))

# construct microscope
sim = Microscope(
Expand Down Expand Up @@ -84,7 +84,7 @@ def test_slm_and_aberration():
"""
img = np.zeros((1000, 1000), dtype=np.int16)
img[256, 256] = 100
src = Camera(StaticSource(img, 400 * u.nm))
src = Camera(StaticSource(img, pixel_size= 400 * u.nm))

slm = SLM(shape=(512, 512))

Expand Down

0 comments on commit 29382e8

Please sign in to comment.