pyqtgraph/pyqtgraph
Martin Chase 1654cb62ac
Small ImageItem-related improvements (#1501)
* Initial asv configuration

* makeARGB benchmarks are working

* Fix array type checking and allow making QImage in greyscale mode

* Performance improvements

* benchmark minor update

* Add CLI args to video speed test for easier / automated benchmarking

* udpate asv conf

* use a buffer-qimage so we can avoid allocing so much

this should improve performance under windows

* Add CLI args to video speed test for easier / automated benchmarking

* use a buffer-qimage so we can avoid allocing so much

this should improve performance under windows

* playing with numba

* oh, mins/maxes in the other order

* maybe put the cupy in here and see what happens

* pre-alloc for gpu and cpu

* handle possibility of not having cupy

* no numba in this branch

* organize imports

* name them after their use, not their expected device

* cupy.take does not support clip mode, so do it explicitly

* add CUDA option to the VideoSpeedTest

* rename private attr xp to _xp

* handle resizes at the last moment

* cupy is less accepting of lists as args

* or somehow range isn't allowed? what histogram is this?

* construct the array with python objects

* get the python value right away

* put LUT into cupy if needed

* docstring about cuda toolkit version

* better handling and display of missing cuda lib

* lint

* import need

* handle switching between cupy and numpy in a single ImageItem

* only use xp when necessary

we can now depend on numpy >= 1.17, which means __array_function__-implementing cupy can
seamlessly pass into numpy functions. the remaining uses of xp are for our functions which
need to allocate new data structures, an operation that has to be substrate-specific.

remove empty_cupy; just check if the import succeeded, instead.

* use an option to control use of cupy

* convert cupy.ceil array to int for easier mathing

* RawImageWidget gets to use the getCupy function now, too

* raise error to calm linters; rename for clarity

* Add Generated Template Files

* document things better

* cruft removal

* warnings to communicate when cupy is expected but somehow broken

* Merge branch 'cupy-rebase' into 'l/imageitem-performance'

Abundant conflicts; accept theirs in nearly every case.

* playing with settings to suss out timeout

* playing with more stuff to suss out timeout

* replace with empty list

* skip test_ExampleApp on linux+pyside2 only

* clean out some bits that no longer make sense; linty

* ignore airspeed velocity dir

* lint

* tidy up for merge

* lint

* lint, avoid shadowing

* specific import; run-as-script setup

Co-authored-by: Luke Campagnola <luke.campagnola@gmail.com>
Co-authored-by: Ogi Moore <ognyan.moore@gmail.com>
2021-01-19 23:19:03 -08:00
..
canvas import template files using importlib 2021-01-15 08:25:08 +08:00
colors/maps Colormap extension (#1424) 2021-01-04 22:01:30 -08:00
console import template files using importlib 2021-01-15 08:25:08 +08:00
dockarea Add fontSize kwarg (taken from PR #129) (#1410) 2020-10-21 22:18:36 -07:00
exporters Skip matplotlib qt6 tests 2021-01-16 14:37:21 +08:00
flowchart import template files using importlib 2021-01-15 08:25:08 +08:00
graphicsItems Small ImageItem-related improvements (#1501) 2021-01-19 23:19:03 -08:00
GraphicsScene GraphicsScene.py : check for C++ item live-ness 2021-01-15 13:12:36 +08:00
imageview import template files using importlib 2021-01-15 08:25:08 +08:00
metaarray update h5py deps in metaarray 2020-07-06 01:08:01 -07:00
multiprocess bootstrap.py: use importlib to generically support all bindings 2021-01-15 08:25:08 +08:00
opengl update glinfo.py to use QOpenGLWidget 2021-01-15 08:25:09 +08:00
parametertree convert QTreeWidget.setFirstItemColumnSpanned 2021-01-15 08:25:05 +08:00
pixmaps Qulogic py3 fixes (#1073) 2019-11-12 08:45:42 -08:00
tests Add NonUniformImage, example and tests. (#509) 2021-01-19 21:43:58 -08:00
util Performance enhancement: use CUDA in ImageItem (#1466) 2021-01-19 21:26:24 -08:00
widgets Performance enhancement: use CUDA in ImageItem (#1466) 2021-01-19 21:26:24 -08:00
__init__.py Performance enhancement: use CUDA in ImageItem (#1466) 2021-01-19 21:26:24 -08:00
colormap.py workaround missing setStops binding 2021-01-15 08:25:05 +08:00
configfile.py py3 fixes 2020-07-05 22:52:15 -07:00
debug.py sip: switch to new PyQt5 api import, with fallback to the old implementation if not found. 2020-07-27 14:52:07 +02:00
exceptionHandling.py Squashed commit of the following: 2014-08-07 09:03:26 -04:00
frozenSupport.py Added Travis CI support 2014-03-30 02:51:32 -04:00
functions.py Small ImageItem-related improvements (#1501) 2021-01-19 23:19:03 -08:00
graphicsWindows.py Restore the now-deprecated PlotWindow and ImageWindow classes 2020-06-11 20:55:28 -07:00
ordereddict.py Don't use ORderedDict backport on python 3 2017-10-11 09:05:32 -07:00
pgcollections.py Merge master into develop (#981) 2019-08-16 20:16:01 -07:00
PlotData.py import numpy as np for lines 44 and 51 (#1161) 2020-05-30 08:09:25 -07:00
Point.py Fix some warnings 2020-07-13 21:09:31 -07:00
ptime.py ptime fix - return precision clock time on py3 2020-07-17 09:53:19 +03:00
python2_3.py Qulogic py3 fixes (#1073) 2019-11-12 08:45:42 -08:00
Qt.py Qt.py : provide QOpenGLWidget (Qt5,6) instead of QGLWidget (Qt4,5) 2021-01-15 08:25:08 +08:00
reload.py reload fix - don't reload files with no pyc 2020-07-17 09:54:51 +03:00
SignalProxy.py SignalProxy: Correct initialization without slot argument and tests (#1392) 2020-10-13 08:50:22 -07:00
SRTTransform3D.py py3 fixes 2020-07-05 22:52:15 -07:00
SRTTransform.py ROI tests pass with row-major axis order 2016-08-25 18:18:15 -07:00
ThreadsafeTimer.py Fix some warnings 2020-07-13 21:09:31 -07:00
Transform3D.py Fix transform3D for pyside2 2018-05-23 21:30:02 -07:00
units.py add unicode units (#1471) 2021-01-03 14:28:56 -08:00
Vector.py improve docstring formatting and wording 2020-08-15 22:15:58 -07:00
WidgetGroup.py py3 fixes 2020-07-05 22:52:15 -07:00