From fa48e7ed2bb63a2c95bd751cb16801cacc4359fc Mon Sep 17 00:00:00 2001 From: Stephane Rigaud Date: Thu, 16 May 2024 15:20:28 +0200 Subject: [PATCH] fix import order --- pyclesperanto/__init__.py | 5 ++++- pyclesperanto/_array.py | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pyclesperanto/__init__.py b/pyclesperanto/__init__.py index ba2ff738..845ed7e8 100644 --- a/pyclesperanto/__init__.py +++ b/pyclesperanto/__init__.py @@ -11,8 +11,8 @@ wait_for_kernel_to_finish, ) from ._functionalities import execute, imshow, list_operations, native_execute -from ._interroperability import * from ._memory import create, create_like, pull, push + from ._tier1 import * from ._tier2 import * from ._tier3 import * @@ -21,6 +21,9 @@ from ._tier6 import * from ._tier7 import * from ._tier8 import * + +from ._interroperability import * + from ._version import CLIC_VERSION as __clic_version__ from ._version import COMMON_ALIAS as __common_alias__ from ._version import VERSION as __version__ diff --git a/pyclesperanto/_array.py b/pyclesperanto/_array.py index f51cdb2f..e8de978a 100644 --- a/pyclesperanto/_array.py +++ b/pyclesperanto/_array.py @@ -2,11 +2,12 @@ import numpy as np -from . import _operators from ._core import Device, get_device from ._pyclesperanto import _Array as Array from ._utils import _assert_supported_dtype +from . import _operators + def _prepare_array(arr) -> np.ndarray: """Converts a given array to a numpy array with C memory layout.