Skip to content

Commit

Permalink
Added cupy version check in the arrus.utils.imaging package. (#243)
Browse files Browse the repository at this point in the history
* cupy version check added to imaging.py

* Minor update.

Co-authored-by: Piotr Jarosik <piotr.jarosik@us4us.eu>
  • Loading branch information
zkLog and pjarosik authored Nov 5, 2021
1 parent 3158570 commit 44e55eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/python/arrus/utils/imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
from collections import deque
from collections.abc import Iterable

import cupy
if cupy.__version__ < "9.0.0":
raise Exception(f"The version of cupy module is too low. "
f"Try install the version ''9.0.0'' or higher.")


def get_extent(x_grid, z_grid):
"""
Expand Down

0 comments on commit 44e55eb

Please sign in to comment.