def getEdges ( npArr ) : edges = np . concatenate ( ( [ 0 ] , npArr [ : , 0 ] + npArr [ : , 2 ] ) ) return np . array ( [ Decimal ( str ( i ) ) for i in edges ] )
python put bins into array
get np array of bin edges
def getEdges(npArr):
  """get np array of bin edges"""
  edges = np.concatenate(([0], npArr[:,0] + npArr[:,2]))
  return np.array([Decimal(str(i)) for i in edges])