Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
Problem
If a list is introduced to cm.ScalarMappable.set_array() method, no error is raised and, nevertheless, probably an error will be raised.
At least, it's raised when using collections:
AttributeError: 'list' object has no attribute 'ndim'
Proposed solution
I think it could be great to add a data type check when data is introduced to this method Although the own name of the method means that the enter data-type must be a numpy array, I think it could be less messy if an exception (or something similar) would be added within this method.
Additional context and prior art
No response