Commit Graph

105 Commits

Author SHA1 Message Date
Mi!
071e429535 makeRGBA/ImageItem: Applying alpha mask on numpy.nan data values (#406)
* Applying alpha mask on numpy.nan data values

* Typesafe, checking for `data.dtype.kind`
2019-09-27 13:31:47 -07:00
Pepijn Kenter
3a863fff9a Fixes incorrect default value for scale parameter in makeARGB. (#793)
* Fix incorrect default value for scale paremter in makeARGB.

* update tests to pass with codebase change
2019-08-17 22:19:11 -07:00
2xB
8d2c16901b Merge master into develop (#981)
* Information is spelled with an r, even in comments
2019-08-16 20:16:01 -07:00
Kenneth Lyons
9653254094 Fix infinite scale in makeARGB (#955) 2019-06-23 09:38:48 -07:00
Ogi Moore
95d62cec6a
Merge pull request #876 from Dschoni/Fix-deprecated-boolean-substract
Typecast Levels to be float
2019-05-23 22:26:21 -07:00
dschoni
bac8080b0c Typecast Levels to be float
This circumvents cases in which "levels" is a boolean array and therefore the substraction fails due to deprecation.
2019-05-21 14:14:10 +02:00
dschoni
7f93e8205f Found one more instance of the same warning in functions.py 2019-05-21 13:38:46 +02:00
Luke Campagnola
66dcfc7c67 Merge branch 'develop' into pyside2 2018-05-22 15:22:54 -07:00
Luke Campagnola
60a48ed2e4 reload tests pass in python 3 2018-04-26 13:22:47 -07:00
Luke Campagnola
bc2c3232e2 Merge branch 'develop' into reload-updates 2018-04-26 11:08:33 -07:00
Luke Campagnola
e318bc041b Fix isosurface error: TypeError('only integer scalar arrays can be converted to a scalar index',) 2018-02-23 17:50:44 -08:00
Luke Campagnola
82afad8366 Fix up Qt.py and deprecate USE_XX variables 2018-02-16 20:42:34 -08:00
Luke Campagnola
46f10f24f8 Merge branch 'develop' of https://github.com/maxpeng/pyqtgraph into maxpeng-develop 2018-02-15 18:30:12 -08:00
Luke Campagnola
870c047d30
Merge pull request #621 from campagnola/rgb-histogram
Rgb histogram
2018-01-26 08:52:10 -08:00
Luke Campagnola
a812d802da Fix bug when spinbox units begin with an SI prefix (like 'PSI') 2018-01-24 09:12:10 -08:00
Luke Campagnola
0c28de5fd8 Fix subArray when input data is discontiguous 2017-10-04 10:24:34 -07:00
Luke Campagnola
9ef9f73be5 minor import and test corrections 2017-10-04 09:35:57 -07:00
Luke Campagnola
fcf4503671 Fix: avoid division by 0 when image is single valued 2017-10-02 08:58:03 -07:00
Luke Campagnola
7c9107fa5d use ndarray() strides argument to construct subarray
previously this was done manually (and imperfectly)
2017-09-29 08:45:33 -07:00
Luke Campagnola
aad1c737c3 eq(): better performance by avoiding array comparison when shapes do not match 2017-09-28 09:11:07 -07:00
Luke Campagnola
4b188c73b0 Add disconnect() and SignalBlock
- make it possible to retrieve previous versions of reloaded objects (needed by disconnect)
2017-09-06 09:09:35 -07:00
Luke Campagnola
9094261c54 Fix eq() bug where calling catch_warnings raised an AttributeError, which would cause eq() to return False
Add unit test coverage
2017-08-02 15:02:38 -07:00
Luke Campagnola
20e821c45e Merge pull request #478 from campagnola/HashSplat-develop
Fix QImage memory leak with PySide + Python3
2017-05-01 11:31:42 -07:00
Luke Campagnola
f6819dda28 Add comments explaining hack 2017-05-01 11:09:50 -07:00
Luke Campagnola
c44afa492a Merge pull request #477 from campagnola/fix-intcolor-value
Fix value stepping in intColor
2017-05-01 10:27:30 -07:00
Luke Campagnola
3f34ea12d8 Fix value stepping in intColor 2017-05-01 09:45:09 -07:00
Justin Engel
c247aa3989 Fixed PySide image memory leak
PySide has a known memory leak issue when using QImage. It does not handle the reference counter correctly. I manually adjusted the reference counter to the data as suggested in a bug report by Neil Whelchel. This bug report can be found at https://bugreports.qt.io/browse/PYSIDE-140
2017-04-11 10:32:43 -04:00
Luke Campagnola
504c35202a Merge pull request #410 from campagnola/spinbox-formatting
Spinbox formatting
2017-01-14 11:09:51 -08:00
Luke Campagnola
e5a17edb4d Add spinbox 'regex' and 'evalFunc' options to complete user-formatting functionality 2016-12-08 10:12:45 -08:00
Luke Campagnola
6b798ffed8 Fix multiple spinbox problems:
- fixed bug with exponents disappearing after edit
 - fixed parsing of values with junk after suffix
 - fixed red border
 - reverted default decimals to 6
 - make suffix editable (but show red border if it's wrong)
 - revert invalid text on focus lost
 - siPrefix without suffix is no longer allowed
 - let user set arbitrary format string
2016-12-06 22:29:22 -08:00
Luke Campagnola
c97c5f51e2 Add spinbox option for custom formatting 2016-11-30 09:16:56 -08:00
Luke Campagnola
e35f59fcb7 Fix interpolateArray for order=0 2016-10-12 10:26:54 -07:00
Luke Campagnola
92fc9dbe2f Add unit test for interpolateArray with order=0
docstring update
2016-10-12 09:58:03 -07:00
Max Peng
8bdc19be75 update to support pyside2 2016-09-25 00:16:36 +08:00
Luke Campagnola
7f0556b05f Implement order=0 in functions.interpolateArray; use scipy only for
order>1.
2016-09-13 18:08:11 -07:00
Luke Campagnola
152c5d393f Fixed bool / monochrome image display, added more unit tests 2016-09-07 17:56:00 -07:00
Luke Campagnola
748a8433b9 minor edits 2016-09-06 17:46:52 -07:00
Luke Campagnola
f2a72bf780 Image tester is working 2016-02-12 03:03:52 -08:00
Luke Campagnola
ee3e6212fa correction for catch_warnings on python 3 2016-01-30 12:26:23 -08:00
Luke Campagnola
3f03622a02 fix isosurface/isocurve for numpy API change 2016-01-30 10:06:58 -08:00
Luke Campagnola
f279988916 suppress numpy futurewarning
cleanups in arraytoqpath
2016-01-30 09:08:05 -08:00
Luke Campagnola
586de3176e Merge remote-tracking branch 'pyqtgraph/develop' into u55-u55-patch-1 2016-01-30 00:54:29 -08:00
Luke Campagnola
a41f3c362c fix case where connect is ndarray 2016-01-30 00:53:49 -08:00
Luke Campagnola
70482432b8 Improve ImageItem performance by scaling LUT instead of image when possible.
Moved eq function from flowcharts to main function library to support this.
Bonus: fixed a flowchart bug (backspace deletes wrong connector) while I was in there.
2016-01-30 00:10:25 -08:00
Luke Campagnola
4be2869773 corrections and cleanups for functions.makeARGB
added unit test coverage
2016-01-29 23:11:01 -08:00
Luke Campagnola
e2f43ce4be simplify makeARGB: remove float support (this was never functional anyway)
remove rescale->lut optimization; this should be done in ImageItem instead.
2016-01-25 18:32:37 -08:00
u55
2f2975212f Fix Numpy FutureWarning. Try again. 2016-01-11 23:30:23 -07:00
u55
2c415a8b03 Fix Numpy FutureWarning.
Don't accidentally compare an array to string. Fixes issue #243.
2016-01-11 23:02:12 -07:00
Luke Campagnola
99aa4cfdd3 Performance improvements for makeARGB. Also adding unit tests.. 2016-01-10 23:08:19 -08:00
Luke Campagnola
e495bbc69b Use inplace multiply 2016-01-02 10:31:03 -08:00