join_bin_lo_hi

pyirf.binning.join_bin_lo_hi(bin_lo, bin_hi)[source]

Function joins bins into lo and hi part, e.g. [0, 1, 2] and [1, 2, 4] into [0, 1, 2, 4] It works on multidimentional arrays as long as the binning is in the last axis

Parameters:
bin_lo: np.array or u.Quantity

Lo bin edges array

bin_hi: np.array or u.Quantity

Hi bin edges array

Returns:
bins: np.array of u.Quantity

The joint bins