From 4d935351f97daffe22f5d553b3ada1f214db9cef Mon Sep 17 00:00:00 2001 From: connor Date: Tue, 21 May 2024 11:51:08 -0700 Subject: [PATCH] reenabled openslide converter --- .../controllers/converters/converter_openslide.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/bqserver/bq/image_service/controllers/converters/converter_openslide.py b/source/bqserver/bq/image_service/controllers/converters/converter_openslide.py index 3e9c6fe..535be4b 100644 --- a/source/bqserver/bq/image_service/controllers/converters/converter_openslide.py +++ b/source/bqserver/bq/image_service/controllers/converters/converter_openslide.py @@ -30,11 +30,11 @@ from bq.image_service.controllers.converter_base import ConverterBase, Format from .converter_imgcnv import ConverterImgcnv -#try: -# import openslide -# from openslide import deepzoom -#except (ImportError, OSError): -# pass +try: + import openslide + from openslide import deepzoom +except (ImportError, OSError): + pass import logging log = logging.getLogger('bq.image_service.converter_openslide') @@ -122,7 +122,7 @@ def supported(cls, token, **kw): '''return True if the input file format is supported''' if not cls.installed: return False - return False #!!! TODO: re-enable + #return False #!!! TODO: re-enable ifnm = token.first_input_file() log.debug('Supported for: %s', ifnm ) #if token.is_multifile_series() is True: