-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplot.py
47 lines (44 loc) · 1.17 KB
/
plot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import pandas as pd
import src
import subprocess, os
def main():
df_name = "plots/basis_study.pkl"
# df_name = "dfs/schr_dft2.pkl"
if not os.path.exists(df_name):
print("Cannot find ./plots/basis_study.pkl, creating it now...")
subprocess.call("cat plots/basis_study-* > plots/basis_study.pkl.tar.gz", shell=True)
subprocess.call("tar -xzf plots/basis_study.pkl.tar.gz", shell=True)
subprocess.call("rm plots/basis_study.pkl.tar.gz", shell=True)
subprocess.call("mv basis_study.pkl plots/basis_study.pkl", shell=True)
df = pd.read_pickle(df_name)
# print(df.columns.values)
df = src.plotting.plotting_setup(
(df, df_name),
False,
)
# return
src.plotting.plot_basis_sets_d4_TT(
df,
False,
)
# return
src.plotting.plot_basis_sets_d4(
df,
False,
)
src.plotting.plot_basis_sets_d3(
df,
False,
)
src.plotting.plot_basis_sets_d4_Inter_vs_Super(
df,
False,
)
# df = src.plotting.plotting_setup(
# (df, df_name),
# True,
# )
# return
return
if __name__ == "__main__":
main()