Skip to content

Commit

Permalink
improve guard because of new napari release fixing blas problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki committed Aug 29, 2024
1 parent 7dcf58f commit 626597a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/napari_spatialdata/_sdata_widgets.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from __future__ import annotations

from collections.abc import Iterable
import platform
from collections.abc import Iterable
from importlib.metadata import version
from pathlib import Path
from typing import TYPE_CHECKING, Iterable, cast
from typing import TYPE_CHECKING
from typing import TYPE_CHECKING, cast

import numpy as np
import shapely
Expand All @@ -32,7 +31,8 @@
# then it will crash with bus error if numpy is used in different thread
# Issue reported https://github.com/numpy/numpy/issues/21799
if (
parse_version(version("numpy")) < parse_version("2")
parse_version(version("napar")) < parse_version("0.5.3")
and parse_version(version("numpy")) < parse_version("2")
and platform.system() == "Darwin"
and platform.machine() == "arm64"
): # pragma: no cover
Expand Down

0 comments on commit 626597a

Please sign in to comment.