line 828 in functions.py
currently
d2 *= scale
propose change to
d2 = d2 * scale
otherwise will fail to convert types when scale and d2 are not of the same
type
for example
d2 = np.array(1)
scale = np.array(1.0)
results in
d2 *= scale
Traceback (most recent call last):
Python Shell, prompt 16, line 1
TypeError: Cannot cast ufunc multiply output from dtype('float64') to
dtype('int32') with casting rule 'same_kind'
whereas
d2 = d2 *scale
works just fine
--
You received this message because you are subscribed to the Google Groups
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyqtgraph/120e59df-2909-4151-9ba9-324871e7041b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.