Skip to content

Commit

Permalink
switched back to if-else import
Browse files Browse the repository at this point in the history
  • Loading branch information
pauladkisson committed Apr 30, 2024
1 parent 062c043 commit 4c35b05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
10 changes: 3 additions & 7 deletions tests/test_scan_image_tiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@
from numpy.testing import assert_array_equal
import platform

# if (
# platform.processor() != "arm"
# ): # Remove this check once scanimage tiff reader is available on ARM -- see https://gitlab.com/vidriotech/scanimagetiffreader-python/-/issues/31
# from ScanImageTiffReader import ScanImageTiffReader
try:
if (
platform.processor() != "arm"
): # Remove this check once scanimage tiff reader is available on ARM -- see https://gitlab.com/vidriotech/scanimagetiffreader-python/-/issues/31
from ScanImageTiffReader import ScanImageTiffReader
except OSError:
pass

from roiextractors import TiffImagingExtractor, ScanImageTiffImagingExtractor

Expand Down
10 changes: 3 additions & 7 deletions tests/test_scanimagetiffimagingextractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@
from numpy.testing import assert_array_equal
import platform

# if (
# platform.processor() != "arm"
# ): # Remove this check once scanimage tiff reader is available on ARM -- see https://gitlab.com/vidriotech/scanimagetiffreader-python/-/issues/31
# from ScanImageTiffReader import ScanImageTiffReader
try:
if (
platform.processor() != "arm"
): # Remove this check once scanimage tiff reader is available on ARM -- see https://gitlab.com/vidriotech/scanimagetiffreader-python/-/issues/31
from ScanImageTiffReader import ScanImageTiffReader
except OSError:
pass
from roiextractors import (
ScanImageTiffSinglePlaneImagingExtractor,
ScanImageTiffMultiPlaneImagingExtractor,
Expand Down

0 comments on commit 4c35b05

Please sign in to comment.