Commit 8223ae69 authored by Leon Pyka's avatar Leon Pyka
Browse files

iv data now asks for offset

parent f2fde367
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -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):
@@ -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: