numpy interface changed to be strict about 2D array shape in histogram

This commit is contained in:
Philip Eisenlohr 2018-12-20 17:09:53 -05:00
parent 1ef82e351b
commit 25a80723c0
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ for name in filenames:
delta = minmax[:,1]-minmax[:,0] delta = minmax[:,1]-minmax[:,0]
(grid,xedges,yedges) = np.histogram2d(table.data[:,0],table.data[:,1], (grid,xedges,yedges) = np.histogram2d(table.data[:,0],table.data[:,1],
bins=options.bins, bins=options.bins,
range=minmax[0:2,0:2], range=minmax[:2],
weights=None if options.weight is None else table.data[:,2]) weights=None if options.weight is None else table.data[:,2])
if options.normCol: if options.normCol: