Martin
b9086f1023
no "i" variable anymore
2021-02-19 11:11:38 -08:00
Ogi Moore
d9eb8e1afb
Merge pull request #1575 from pijyoi/reduce_shim
...
Reduce number of shims for PyQt6
2021-02-19 09:40:06 -08:00
Ogi Moore
d0d10ca512
Merge pull request #1587 from irgolic/darkmode-example-property
...
app.dark_mode => app.property('darkMode')
2021-02-18 19:33:16 -08:00
Rafael Irgolic
6da60ccec8
Qt: Remove some Qt4 shims
2021-02-18 19:12:32 +00:00
Rafael Irgolic
ae54e27ff6
app.dark_mode => app.property('darkMode')
2021-02-18 19:02:18 +00:00
Ogi Moore
1a2728a671
Merge pull request #1586 from j9ac9k/investigate-rawImage-imageaxisorder
...
Investigate raw image imageaxisorder
2021-02-16 22:48:22 -08:00
Ogi Moore
765032fc0b
Do not upload texture every paintGL call
2021-02-16 22:19:38 -08:00
Ogi Moore
0b26ef3644
RawImageWidget uses imageAxisOrder config option
2021-02-16 22:19:13 -08:00
Ogi Moore
acd172eb13
Merge pull request #1583 from pijyoi/port_qopenglwidget
...
RawImageWidget.py : fix port to QOpenGLWidget
2021-02-15 21:02:34 -08:00
Ogi Moore
c13da2c6da
Merge pull request #1582 from pyqtgraph/rtd
2021-02-15 18:40:40 -08:00
KIU Shueng Chuan
2719922584
RawImageWidget.py : fix port to QOpenGLWidget
...
Qt5 docs specify differences between QGLWidget and QOpenGLWidget:
"...when invoking paintGL().
QOpenGLWidget sets up the viewport via glViewport().
It does not perform any clearing."
2021-02-16 09:15:37 +08:00
Kenneth Lyons
87f6c2778b
Pin sphinx version to avoid buggy sphinx.ext.viewcode
2021-02-15 16:24:49 -08:00
lidstrom83
6519734932
Deprecate unused/unnecessary modules ( #1576 )
...
* Deprecate ordereddict module
* Import OrderedDict from collections module instead of pgcollections
* Deprecate pgcollections module
* Deprecate lru_cache module
A simpler recipe exists from the standard library using OrderedDict.
* Deprecate pil_fix module
* Python 3.7 compatibility fix
* Avoid or suppress deprecation warnings in tests
2021-02-15 09:52:06 -08:00
Martin Chase
5210c55e67
Equilateral Triangle ROI ( #1581 )
...
* feature TriangleROI
Added equilateral TriangleROI.
getArrayRegion is not working yet
* show off (and implicitly test) our new TriangleROI
* the PolyLineROI.getArrayRegion can be used by TriangleROI
refactor the actual logic to live on ROI
* refactors for readability
* variable names
* lint
* docstring type and purpose
Co-authored-by: Fekete Imre <feketeimre87@gmail.com>
2021-02-15 06:06:55 -08:00
Kyle Sunden
a5a41cf8eb
Merge pull request #1577 from j9ac9k/cleanup-1573
...
Remove duplicate import and remove whitespace
2021-02-14 21:36:31 -06:00
Ogi Moore
825286066a
only cast to float32 when safe to do so
2021-02-14 17:43:32 -08:00
Ogi Moore
4ac8e39aea
Remove duplicate import and remove whitespace
2021-02-14 12:05:22 -08:00
Ogi Moore
5bfe8d5a46
Merge pull request #1572 from outofculture/arbitrary-scale-center
...
Arbitrary scale center ROI
2021-02-14 08:49:03 -08:00
KIU Shueng Chuan
a1f9100ef1
shim only the keys we actually use
2021-02-14 07:56:05 +08:00
KIU Shueng Chuan
6ad1d752fe
use QKeySequence to detect platform dependent copy keys
2021-02-14 07:46:20 +08:00
KIU Shueng Chuan
968286a1cf
remove drag and drop shims
...
used only in one place in the codebase
2021-02-14 07:44:00 +08:00
KIU Shueng Chuan
f4d685f7bd
remove QDialog.exec_ shim
...
only used by PrinterExport.py which is currently disabled
2021-02-14 07:36:41 +08:00
Ogi Moore
a04ff546e0
Merge pull request #1573 from j9ac9k/add-deprecation-warnings
...
Add deprecation warnings, Use non-deprecated upstream methods
2021-02-13 14:59:17 -08:00
Ogi Moore
6c5c0b590f
Skip test_reload on python 3.10+
2021-02-13 10:57:38 -08:00
Ogi Moore
dce2288a18
Fix most errors...
2021-02-13 10:57:38 -08:00
Ogi Moore
3bfe2d81ba
Do not use numpy deprecated type aliases
2021-02-13 10:57:38 -08:00
Ogi Moore
955f1c37a6
Use QPointF instead of QPoint for float input
2021-02-13 10:57:38 -08:00
Ogi Moore
f853d8b520
Replace float type to QTimer.start() with int
2021-02-13 09:07:54 -08:00
Ogi Moore
fc550aab86
keep testing deprecated objects, catch warnings
2021-02-12 13:08:00 -08:00
Ogi Moore
36d89fa3a5
Have test_PlotCurveItem use GraphicsLayoutWidget and not the deprecated GraphicsWindow
2021-02-12 13:08:00 -08:00
Ogi Moore
d14a90112c
Have test_svg use GraphicsLayoutWidget not the Deprecated GraphicsWindow
2021-02-12 13:08:00 -08:00
Ogi Moore
4fcea2762f
Have NonUniformImage test use GraphicsLayoutWidget not deprecated GraphicsWindow
2021-02-12 13:08:00 -08:00
Ogi Moore
45329aac51
Remove unneeded pytest.skipif decorator
2021-02-12 13:08:00 -08:00
Ogi Moore
b45386ebc5
Have __init__.plot() use PlotWidget, not deprecated PlotWindow
2021-02-12 13:08:00 -08:00
Ogi Moore
ff71b6be6b
Add actual deprecation warnings
2021-02-11 21:34:02 -08:00
Ogi Moore
bd548e00c9
Restore shimmed Qt4 methods, with deprecation warnings
2021-02-11 20:06:38 -08:00
lidstrom83
d7668f91b3
Fix ScatterPlotItem performance regression ( #1569 )
...
* Fix ScatterPlotItem performance regression
* Add hover benchmark to ScatterPlotSpeedTest.py
* Removed a performance regression from GraphicsView
* Removed some tests failing due to the last commit
2021-02-11 08:36:52 -08:00
Ogi Moore
344348441a
Merge pull request #1568 from pijyoi/pyqt_qimage
...
Change image tests to not rely on non-const QImage
2021-02-10 19:57:22 -08:00
KIU Shueng Chuan
659392d4bb
don't rely on QImage being non-const
...
the previous formulation creates an ndarray and then creates an QImage
over it w/o copying. this relies on the QImage thus created being
non-const.
if the QImage was (unintentionally) created as const, the subsequent
QPainter render on the const QImage would trigger a COW. i.e. the
original underlying ndarray wouldn't be updated.
this is only an issue for PyQt bindings where const QImages can be
created.
2021-02-11 10:38:19 +08:00
KIU Shueng Chuan
6c8e07c377
use 64-bits qimage size for PyQt5 5.15
...
PyQt5 5.15 has both methods sizeInBytes() (64-bits) and byteCount()
(32-bits)
the previous formulation would use 32-bits qimage size for PyQt5 5.15.
2021-02-11 10:38:19 +08:00
Ogi Moore
87b03b5a2a
Merge pull request #1567 from ksunden/inf_line_0d
...
Handle case of 0-d array in infinite line setPos
2021-02-10 12:29:28 -08:00
Kyle Sunden
17b1b82ae9
Handle case of 0-d array in infinite line setPos
2021-02-10 13:59:37 -06:00
lidstrom83
389dff4250
Add more options to ScatterPlotSpeedTest ( #1566 )
...
* Add more options to ScatterPlotSpeedTest
* Fixed poor choice of variable names
* Add simulated pan/zoom
* Multilingual support
2021-02-10 09:25:31 -08:00
Ogi Moore
28e7d4d12c
Fix Small Heights in ErrorBarItem ( #1558 )
...
* Add arrayToQPath bit
* No more moveTo or lineTo
* Use better names than 'partial'
* Implement feedback from reviewer
2021-02-09 20:42:39 -08:00
Nils Nemitz
33365fb730
Reduce reallocation in dynamic range limiter ( #1556 )
...
* change imports in cupy module to be local
* reduced re-allocation in dynamic range limiter, part 1
* minor cleanup
2021-02-09 20:36:31 -08:00
lidstrom83
aed2382e38
Correct id-based keying of scatter plot pixmap cache ( #1564 )
...
* Correct id-based keying of scatter plot pixmap cache
Note: naively using the id function results in non-unique keys.
Alternatively, we could serialize the Qt objects and use these in the key. This would provide protection from the user mutating these later, but at a cost to performance.
* Make id attribute private
* Access class variable instead of instance
2021-02-09 13:58:15 -08:00
Ogi Moore
44454358f6
Merge pull request #1561 from pijyoi/no_deletelater
...
remove app.deleteLater() from tests
2021-02-09 08:27:00 -08:00
Ogi Moore
ca1ce7aa90
Merge pull request #1563 from RubendeBruin/fix_flowchart_docs
...
Flowchart documentation fix
2021-02-09 08:21:22 -08:00
Ruben de Bruin
77db5a868b
Flowchart documentation fix
...
the widget() method should be used to display the flowchart in a window rather than the ctrlWidget().
2021-02-09 15:20:14 +01:00
KIU Shueng Chuan
c9dcc0c0ed
remove app.deleteLater() from tests
...
Multiple tests are executed by pytest with the same Python process.
The QApplication instance is a global object that will be used by
subsequent tests.
The Qt documentation says that the object will only be deleted while
running in an event loop. In addition, the Qt docs also specifically
say that processEvents() does not process DeferredDelete events.
i.e. calling processEvents() in a loop is not equivalent to calling
QApplication.instance().exec_()
2021-02-09 16:37:19 +08:00