Skip to content

Commit

Permalink
Added comments for test_image_mosaic.py to describe file setup
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed May 7, 2024
1 parent e937cdb commit a4f720a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_unit/test_image_mosaic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@

from brainglobe_stitch.image_mosaic import ImageMosaic

# The tiles lie in one z-plane and are arranged in a 2x2 grid with 2 channels.
# Each tile is 128x128x107 pixels (x, y, z).
# The tiles overlap by 10% in x and y (13 pixels).
# The tiles are arranged in the following pattern:
# channel 0 | channel 1
# 00 10 | 04 05
# 01 11 | 14 15
NUM_TILES = 8
NUM_RESOLUTIONS = 5
NUM_CHANNELS = 2
TILE_SIZE = (107, 128, 128)
# Expected tile config for the test data in test_data_bdv.h5
# The tile positions are in pixels in x, y, z order
EXPECTED_TILE_CONFIG = [
"dim=3",
"00;;(0,0,0)",
Expand All @@ -19,6 +28,8 @@
"14;;(115,0,0)",
"15;;(115,115,0)",
]
# Expected tile positions for the test data in test_data_bdv.h5
# The tile positions are in pixels in z, y, x order
EXPECTED_TILE_POSITIONS = [
[0, 0, 0],
[0, 115, 0],
Expand Down

0 comments on commit a4f720a

Please sign in to comment.