Skip to content

Commit

Permalink
Fixed for the possible the long error msg (if array is not a numpy ar…
Browse files Browse the repository at this point in the history
…ray) by first checking for array and then float
  • Loading branch information
jeammimi committed Mar 15, 2017
1 parent 827be3f commit ded32bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipyvolume/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class Scatter(widgets.DOMWidget):
vz = Array(default_value=None,allow_none=True).tag(sync=True, **create_array_binary_serialization('vz'))
selected = Array(default_value=None,allow_none=True).tag(sync=True, **array_serialization)
sequence_index = Integer(default_value=0).tag(sync=True)
size = traitlets.Union([traitlets.Float().tag(sync=True),
Array(default_value=None,allow_none=True).tag(sync=True, **array_serialization)],
size = traitlets.Union([Array(default_value=None,allow_none=True).tag(sync=True, **array_serialization),
traitlets.Float().tag(sync=True)],
default_value=0.1).tag(sync=True)
size_selected = traitlets.Float(0.02).tag(sync=True)
color = traitlets.Union([Array(default_value=None,allow_none=True).tag(sync=True, **create_array_binary_serialization('color')),
Expand Down

0 comments on commit ded32bc

Please sign in to comment.