change imports in cupy module to be local (#1548)

This commit is contained in:
Nils Nemitz 2021-02-07 02:21:24 +09:00 committed by GitHub
parent f1cfdc302d
commit 194941dfb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,7 @@ import sys
import warnings
import numpy as np
from pyqtgraph.util.cupy_helper import getCupy
from .util.cupy_helper import getCupy
from . import debug, reload
from .Qt import QtGui, QtCore, QT_LIB, QtVersion

View File

@ -1,8 +1,7 @@
import os
from warnings import warn
from pyqtgraph import getConfigOption
from .. import getConfigOption
def getCupy():
if getConfigOption("useCupy"):