Just to clarify: you are in favor of checking only for `lbins == 0` and in that case print a corresponding error message? Independently from that, I am not sure if digitizing no data should be allowed. The initial creator of the code surely did not want to allow it (according to his error message). I also would not. But I am not sure how this is generally handled in numpy.