Example #1
0
def process_all(path):
    files = getListOfFiles(path)
    Carto = [x for x in files if (("Hyp" in x) & (x.endswith(".dat")))]
    TRCL = [x for x in files if (("TRCL" in x) & (x.endswith(".dat")))]
    for p in TRCL:
        try:
            process_fromFile(p, save=True, autoclose=True)
        except:
            pass
    for p in Carto:
        try:
            make_linescan(p,
                          save=True,
                          autoclose=False,
                          Linescan=True,
                          deadPixeltol=200)
        except:
            pass
Example #2
0
File: rampe.py Project: SF73/PhD

fig, ax = plt.subplots()
fig.patch.set_alpha(0)
markers = itertools.cycle(["o",'D',"s",'h','H','8','*'])
files=getListOfFiles(r"C:\Users\sylvain.finot\Cloud Neel\Data")
# =============================================================================
# T2594
mask = [x for x in files if ((("TRCL" in x) & (x.endswith(".dat")))& ("T2594"in x) & (not ("Rampe"in x)) & (not("Al" in x)) & (not("Ag" in x)))]
T = list()
Tau = list()
T10 = list()
for p in mask:
    idx = p.find('K')
    Temp = int(p[idx-3:idx])
    A,tau,t10,A1,A2,tau1,tau2,R = process_fromFile(p,save=False,autoclose=True,merge=False)
    if ((1-R)>1e-2):continue
    taueff = -(A1*tau1+A2*tau2)/(A1+A2)
    T.append(Temp)
    Tau.append(tau)
    T10.append(t10)
T = np.array(T)
Tau = np.array(Tau)*1e3
T10 = np.array(T10)*1e3
m = next(markers)
#bx.plot(10*np.ones(len(T10)),T10,m,alpha=0.6,label='T2594')
ax.plot(T,T10,m,alpha=0.6,label='T2594 - different wires')
#ax.errorbar(T,Tau,yerr=25,fmt=m,label='T2594 - different wire')
#ax.errorbar([5,300],[240,161],yerr=25,fmt=m,label='T2594')
# =============================================================================
# =============================================================================