Loading 2_offset_hierarchical_struct/parse_iv_data.py +5 −4 Original line number Diff line number Diff line Loading @@ -3,7 +3,8 @@ import numpy as np import matplotlib.pyplot as plt import h5py base_path = "/FASTTEMP/p7/lpyka/hierarchical_interface/2_offset_hierarchical_struct/offset_1" OFFSET = 1 base_path = f"/FASTTEMP/p7/lpyka/hierarchical_interface/2_offset_hierarchical_struct/offset_{OFFSET}" def get_iv_data(filepath): Loading @@ -15,10 +16,10 @@ def get_iv_data(filepath): def plot_iv_curve(data): fig, ax = plt.subplots() x = data[:,0] y = data[:,1] x = data[:,1] y = data[:,0] ax.plot(x, y) #plt.show() plt.show() def append_data_to_txt(data, seed): with open("ivcat.txt", 'a') as file: Loading Loading
2_offset_hierarchical_struct/parse_iv_data.py +5 −4 Original line number Diff line number Diff line Loading @@ -3,7 +3,8 @@ import numpy as np import matplotlib.pyplot as plt import h5py base_path = "/FASTTEMP/p7/lpyka/hierarchical_interface/2_offset_hierarchical_struct/offset_1" OFFSET = 1 base_path = f"/FASTTEMP/p7/lpyka/hierarchical_interface/2_offset_hierarchical_struct/offset_{OFFSET}" def get_iv_data(filepath): Loading @@ -15,10 +16,10 @@ def get_iv_data(filepath): def plot_iv_curve(data): fig, ax = plt.subplots() x = data[:,0] y = data[:,1] x = data[:,1] y = data[:,0] ax.plot(x, y) #plt.show() plt.show() def append_data_to_txt(data, seed): with open("ivcat.txt", 'a') as file: Loading