histogramming and dividing by the number of bins
I have a weird edgecase for binning, histogramming and dividing by the number of bins. I'm using the SAXS module for a NpT simulation by mdtools saxs -s npt.tpr -f npt.xtc -endq 25
. This usually works nice but I found a case, where data exactly at 25 exists. np.histogram
has no problem with this, but when I want to divide by the number of samples in each bin I git an error that the shapes do not fit. I have dirty hack that I just put everything that is larger in the last bin... I can also supply sample data if somebody got a clever idea.
See MR18
Edited by Philip Loche