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())
def galformatter(gal): n, t = galdata(gal) return group_pretty_and_nTj(n, t, True, cache=galcache())
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)