Example #1
0
def dl(fname, hl, vl, hl_=[], over=1):
    tablefname = TDIR + fname
    tablefname += ".tex"
    foo = g.doubleLines(tablefname, hlines=hl, vlines=vl, hlines_=hl_)
    if not over:
        tablefname = tablefname.replace(".tex", "_.tex")
    g.writeTex(foo, tablefname)
Example #2
0
def me(fname, mark, locs, over=0):
    fn = TDIR + fname + ".tex"
    foo = g.markEntries_(fn, mark, locs)
    if not over:
        fn = fn.replace(".tex", "_.tex")
    g.writeTex(foo, fn)
Example #3
0
def dl(fname,hl,vl,over=0):
    fname+=".tex"
    foo=g.doubleLines(fname,hlines=hl,vlines=vl)
    if not over:
        tablefname=fname.replace(".tex","_.tex")
    g.writeTex(foo,tablefname)
Example #4
0
    [1, 4, 7, 10, 13],
    list(range(2, 31, 2)),
)

me("musicGeneral", "\\bf", [(i, 0) for i in range(1, 9)])
dl(
    "musicGeneral_",
    [1, 2, 4, 6, 8],
    [1],
)

me("musicDistances", "\\bf", [(i, 0) for i in range(1, 17, 2)])
me("musicDistances_", "\\bf", [(0, i) for i in range(1, 9)], 1)
dl("musicDistances_", [2 * 2 - 1, 4 * 2 - 1, 6 * 2 - 1, 8 * 2 - 1],
   [2, 4, 6, 8], list(range(2, 17, 2)))
g.writeTex(g.fSize(TDIR + "musicDistances_.tex", "\\scriptsize"),
           TDIR + "musicDistances_.tex")

me("osGeneral", "\\bf", [(i, 0) for i in range(1, 11)])
dl(
    "osGeneral_",
    [1, 4, 5, 7, 9],
    [1],
)

me("osDistances", "\\bf", [(i, 0) for i in range(1, 21, 2)])
me("osDistances_", "\\bf", [(0, i) for i in range(1, 11)], 1)
dl("osDistances_", [4 * 2 - 1, 5 * 2 - 1, 7 * 2 - 1, 9 * 2 - 1], [4, 5, 7, 9],
   list(range(2, 21, 2)))
g.writeTex(g.fSize(TDIR + "osDistances_.tex", "\\scriptsize"),
           TDIR + "osDistances_.tex")
Example #5
0
print(tstring)
row_labels = list(range(10))
sequences = [list(range(30, 40)), list(range(50, 60))]
partials = [1, 2, 5]
tstring2 = g.parcialSums(row_labels, sequences, partials)

partial_labels = ["u.", "b.", "q."]
datarow_labels = ["ELE", "LAD"]
tstring3 = g.parcialSums(row_labels, sequences, partials, partial_labels,
                         datarow_labels)

dl = g.DownloadGmaneData('~/.gmane2/')
dl.downloadedStats()  # might take a while

lm = g.LoadMessages(dl.lists[0][0], basedir="~/.gmane2/")
print("loaded messages")
ds = g.ListDataStructures(lm)
print("made datastructures")
ts = g.TimeStatistics(ds)
print("made overall activity statistics along time")

hi = ts.hours["histogram"] / ts.hours["histogram"].sum()
row_labels = list(range(24))
tstring4 = g.parcialSums(row_labels,
                         data=[hi],
                         partials=[1, 2, 3, 4, 6, 12],
                         partial_labels=["h", "2h", "3h", "4h", "6h", "12h"],
                         datarow_labels=["LOOB"])

g.writeTex(tstring4, "aqui.tex")