|
| 1 | +<<<<<<< Updated upstream |
1 | 2 | import os
|
| 3 | +======= |
| 4 | +import os, sys |
| 5 | +#sys.path.append("..") |
| 6 | +>>>>>>> Stashed changes |
2 | 7 | import matplotlib.pyplot as plt
|
3 | 8 | import networkx as nx
|
4 | 9 | from src import box, constants, util
|
|
9 | 14 | util.ensure_date_in_filenames(dflist)
|
10 | 15 | dflist = util.get_box_files(bikeLogs)
|
11 | 16 |
|
| 17 | +<<<<<<< Updated upstream |
| 18 | +======= |
| 19 | +ot_events = [] |
| 20 | + |
| 21 | +>>>>>>> Stashed changes |
12 | 22 | for csv_file in dflist:
|
13 | 23 | print(csv_file, flush=True)
|
14 | 24 | csvr = util.read_csv(csv_file)
|
|
17 | 27 | press_starts, press_lengths = box.get_press_lengths_and_starts(ldata)
|
18 | 28 | date_string = csv_file.split("/")[-1][:8]
|
19 | 29 |
|
| 30 | +<<<<<<< Updated upstream |
20 | 31 | """
|
| 32 | +======= |
| 33 | +>>>>>>> Stashed changes |
21 | 34 | b_partitions, a_partitions, b_modularities, a_modularities = mod.get_partitions(ldata, press_starts, press_lengths)
|
22 | 35 |
|
23 | 36 | for j, b_parts in enumerate(b_partitions):
|
|
85 | 98 | break # after getting to the OT event
|
86 | 99 |
|
87 | 100 | plt.ylim([0,700])
|
| 101 | +<<<<<<< Updated upstream |
88 | 102 | plt.savefig(os.path.join("out", "mod", date_string+"_ld_"+str(press_starts[j])+"_"+"{:.6f}".format(pmod)+"_disp="+str(dispersion_score)+"_clique.png"))
|
89 | 103 | plt.clf()
|
90 | 104 |
|
91 | 105 | util.write_to_csv_file(os.path.join("data", "ot_events.csv"), ot_events)
|
92 | 106 |
|
93 | 107 | """
|
| 108 | +======= |
| 109 | + plt.savefig(os.path.join("gha", "out", "ot-figures", date_string+"_ld_"+str(press_starts[j])+"_"+"{:.6f}".format(pmod)+"_disp="+str(dispersion_score)+"_clique.png")) |
| 110 | + plt.clf() |
| 111 | + |
| 112 | +util.write_to_csv_file(os.path.join("gha", "out", "ot-events.csv"), ot_events) |
| 113 | + |
| 114 | +>>>>>>> Stashed changes |
0 commit comments