Menu

#8 bug in Hist2D_get

open
nobody
None
5
2007-06-18
2007-06-18
Anonymous
No

A small bug in the 2D histogram get method. The method checks the number of bins in the x direction instead of the y direction for the index j.

The line 226 in Hist"D.c reads

if (nj < 0 || nj > ptr->nx)
rb_raise(rb_eRangeError, "Index j is outside of allowed range.");

but it should read
if (nj < 0 || nj > ptr->ny)
...

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.