def decompose_in_day_and_hour(dates):
    decomposed = numpy.zeros(len(dates), dtype=[('day', int), ('hour', float)])
    decomposed['day'] = dates
    decomposed['hour'] = (dates - decomposed['day']) * 24
    return decomposed
dataset/ETHPy150Open tkf/orgviz/orgviz/graphs.py/decompose_in_day_and_hour/original