These are chat archives for astropy/astropy

Jul 2016
Jul 12 2016 18:39
Hi, I got a question about making a histogram using the 'blocks' binning strategy, i.e. bayesian blocks. I'd like to make a histogram of data points which have uncertainties. The astropy.stats.bayesian_blocks function (which would give me the binlimits I need) has an argument sigma which should do what I need, I suppose. but I'm confused that I have to pass two arrays (t & x) as arguments (apart from the sigma/data errors of course), not just the one I want to bin (x). And in the documentation of the stats.histrogram function I don't see any support for data uncertainties, not even through the (unimplemented) weights.
Am I just parsing the docs incorrectly? Or how to I work around this?