Commit 2a8446c1 authored by Carsten Richter's avatar Carsten Richter
Browse files

more py3 in rebin.py

parent 2e220ef6
......@@ -117,7 +117,7 @@ def rebin2d(x1, x2, y, weights=None, bins=50,
x2 = x2[ind]
y = y[ind]
if isinstance(bins, (long, int)):
if isinstance(bins, int):
bins = [bins]*2
if len(bins) != 2:
raise ValueError("Invalid input for `bins`")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment