|
📚 Docs preview built and uploaded! https://www.fastplotlib.org/ver/iw-set-data-subset2 |
Sorry, something went wrong.
There was a problem hiding this comment.
This is cool! I didn't know you could do this kind of comparison without np.all()
Sorry, something went wrong.
|
This is cool! I didn't know you could do this kind of comparison without np.all() This is only checking that the object reference is the same. If "new_data" is an array with the same values as the existing data array then it won't pass this check. Intended use is something like this: a, b, c, d # existing arrays
iw = fpl.ImageWidget([a, b, c, d])
# I want to replace only c
new = np.array(...)
iw.set_data([a, b, new, d])
# this will also end up replacing
a_copy = a.copy()
iw.set_data([a_copy, b, c, d])
|
Sorry, something went wrong.
Skips data arrays that already exist, closes #901
@clewis7 should be gtg