Skip to content

Commit

Permalink
classify bins_arr.tolist() instead of returning np.array (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
wietzesuijker authored and caspervdw committed Dec 18, 2019
1 parent bea39de commit b1d1b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dask_geomodeling/raster/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def __init__(self, store, bins, right=False):
bins_diff = np.diff(bins)
if not np.all(bins_diff > 0) or np.all(bins_diff < 0):
raise TypeError("'bins' should be monotonic")
super(Classify, self).__init__(store, bins_arr, right)
super(Classify, self).__init__(store, bins_arr.tolist(), right)

@property
def bins(self):
Expand Down

0 comments on commit b1d1b38

Please sign in to comment.