Skip to content

Commit

Permalink
A/B/C testing of requiresPixelsPyramid()
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Feb 26, 2024
1 parent c3674ff commit b4424a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions omeroweb/webgateway/marshal.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,11 @@ def pixel_size_in_microns(method):
# NB: some small images like OME-Zarr can have pyramids
# but these will be ignored

# TEMP - for A/B testing only use size test if ID is EVEN number!
if image.id % 2 == 0 and not image.requiresPixelsPyramid():
# TEMP - for A/B/C testing based on image ID
big_image = (rv["size"]["width"] * rv["size"]["height"]) > (3000 * 3000)
if image.id % 2 == 0 and not big_image:
rv["tiles"] = False
elif image.id % 2 == 1 and image.requiresPixelsPyramid():
rv["tiles"] = False
else:
if load_re(image, rv):
Expand Down

0 comments on commit b4424a0

Please sign in to comment.