def humanize_speed(c_per_sec):
    scales = [60, 60, 24]
    units = ['c/s', 'c/min', 'c/h', 'c/d']
    speed = c_per_sec
    i = 0
    if speed > 0:
        while (speed < 1) and (i < len(scales)):
            speed *= scales[i]
            i += 1
        
    return "{:.1f}{}".format(speed, units[i])
Sets an image's anchor point to its center
dataset/ETHPy150Open cimatosa/jobmanager/jobmanager/progress.py/humanize_speed--crossover with--dataset/ETHPy150Open Akagi201/learning-python/pyglet/mygame/game/resources.py/center_image