Пример #1
0
def contformatter(cont):
    n, t = galdata(cont)
    if t == 0: # no T number
        return cont
    return group_pretty_and_nTj(n, t, True, cache=contcache())
Пример #2
0
def galformatter(gal):
    n, t = galdata(gal)
    return group_pretty_and_nTj(n, t, True, cache=galcache())
Пример #3
0
def projformatter(proj):
    if isinstance(proj, list):
        proj = "%sT%s" % tuple(proj)
    n, t = galdata(proj)
    return group_pretty_and_nTj(n, t, True, cache=projcache(), skip_nTj=True)