From 517d243166661f1199b7ed2429aee4775c2a79e3 Mon Sep 17 00:00:00 2001 From: Ogi Moore Date: Mon, 22 Mar 2021 11:12:01 -0700 Subject: [PATCH] Remove unhelpful warnings (#1646) * Remove warning about existing QApplication * Remove reference to weave which we do not use * Do away with opengl warning * Remove weaveDebug config option --- doc/source/config_options.rst | 5 +---- doc/source/images.rst | 2 +- pyqtgraph/__init__.py | 4 ---- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/doc/source/config_options.rst b/doc/source/config_options.rst index 797404c6..2fe5672f 100644 --- a/doc/source/config_options.rst +++ b/doc/source/config_options.rst @@ -26,10 +26,7 @@ imageAxisOrder str 'col-major' For 'row-major', image change in the future. editorCommand str or None None Command used to invoke code editor from ConsoleWidget. exitCleanup bool True Attempt to work around some exit crash bugs in PyQt and PySide. -useWeave bool False Use weave to speed up some operations, if it is available. -weaveDebug bool False Print full error message if weave compile fails. -useOpenGL bool False Enable OpenGL in GraphicsView. This can have unpredictable effects on stability - and performance. +useOpenGL bool False Enable OpenGL in GraphicsView. useCupy bool False Use cupy to perform calculations on the GPU. Only currently applies to ImageItem and its associated functions. enableExperimental bool False Enable experimental features (the curious can search for this key in the code). diff --git a/doc/source/images.rst b/doc/source/images.rst index 0a4ac147..b1813b7f 100644 --- a/doc/source/images.rst +++ b/doc/source/images.rst @@ -21,6 +21,6 @@ There are a few other methods for displaying images as well: * Instances of :class:`~pyqtgraph.ImageItem` can be used inside a :class:`ViewBox ` or :class:`GraphicsView `. * For higher performance, use :class:`~pyqtgraph.RawImageWidget`. -Any of these classes are acceptable for displaying video by calling setImage() to display a new frame. To increase performance, the image processing system uses scipy.weave to produce compiled libraries. If your computer has a compiler available, weave will automatically attempt to build the libraries it needs on demand. If this fails, then the slower pure-python methods will be used instead. +Any of these classes are acceptable for displaying video by calling setImage() to display a new frame. For more information, see the classes listed above and the 'VideoSpeedTest', 'ImageItem', 'ImageView', and 'HistogramLUT' :ref:`examples`. \ No newline at end of file diff --git a/pyqtgraph/__init__.py b/pyqtgraph/__init__.py index 71a8662c..2f8ec4ab 100644 --- a/pyqtgraph/__init__.py +++ b/pyqtgraph/__init__.py @@ -36,8 +36,6 @@ if 'linux' in sys.platform: ## linux has numerous bugs in opengl implementation useOpenGL = False elif 'darwin' in sys.platform: ## openGL can have a major impact on mac, but also has serious bugs useOpenGL = False - if QtGui.QApplication.instance() is not None: - print('Warning: QApplication was created before pyqtgraph was imported; there may be problems.') else: useOpenGL = False ## on windows there's a more even performance / bugginess tradeoff. @@ -49,8 +47,6 @@ CONFIG_OPTIONS = { 'background': 'k', ## default background for GraphicsWidget 'antialias': False, 'editorCommand': None, ## command used to invoke code editor from ConsoleWidgets - 'useWeave': False, ## Use weave to speed up some operations, if it is available - 'weaveDebug': False, ## Print full error message if weave compile fails 'exitCleanup': True, ## Attempt to work around some exit crash bugs in PyQt and PySide 'enableExperimental': False, ## Enable experimental features (the curious can search for this key in the code) 'crashWarning': False, # If True, print warnings about situations that may result in a crash