Skip to content

Commit

Permalink
still return if no backend
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinblampey committed May 23, 2024
1 parent 6abec60 commit d79df6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sopa/patches/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def _get_extraction_parameters(
level = 0

if backend is None:
return None, None, None, None, False
log.warn("No backend found, using downsample=1")

if magnification is None:
if magnification is None or backend is None:
return level, 1, patch_width * 2**level, 1.0, True # TODO: what if scaling != 2?

if slide_metadata["properties"].get(f"{backend}.objective-power"):
Expand Down

0 comments on commit d79df6d

Please sign in to comment.