Skip to content

Commit

Permalink
Merge pull request #956 from kernc/fix-scattermap
Browse files Browse the repository at this point in the history
Discretizer: fix OWScatterMap bug
  • Loading branch information
lanzagar committed Dec 29, 2015
2 parents bd8d551 + 8a23e99 commit 0884bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/preprocess/discretize.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, variable, points):

@staticmethod
def digitize(x, bins):
return np.digitize(x, bins) if bins else [0]*len(x)
return np.digitize(x, bins) if len(bins) else [0]*len(x)

def transform(self, c):
if c.size:
Expand Down

0 comments on commit 0884bec

Please sign in to comment.