Commit 735a0e48 authored by Muriel Bonetto's avatar Muriel Bonetto

no me deja pullear en mi compu si no hago esto

parent b8b67cf9
...@@ -531,6 +531,15 @@ plt.savefig('CPT_3lasers.svg') ...@@ -531,6 +531,15 @@ plt.savefig('CPT_3lasers.svg')
#%%
i = 0
for j in range(28):
plt.figure()
plt.plot([2*f*1e-6 for f in Freqs[j]], Counts[j], 'o-')
plt.xlabel('Frecuencia MHz)')
plt.ylabel('counts')
plt.grid()
plt.savefig(f'espectros_4_{j}.png',dpi = 200)
...@@ -358,4 +358,17 @@ plt.xlabel('Frecuencia (MHz)') ...@@ -358,4 +358,17 @@ plt.xlabel('Frecuencia (MHz)')
plt.ylabel('counts') plt.ylabel('counts')
plt.grid() plt.grid()
#plt.ylim(2500, 6100) #plt.ylim(2500, 6100)
plt.legend() plt.legend()
\ No newline at end of file
#%%
i = 0
for j in range(28):
plt.figure()
plt.plot([2*f*1e-6 for f in Freqs[j]], Counts[j], 'o-')
plt.xlabel('Frecuencia MHz)')
plt.ylabel('counts')
plt.grid()
plt.savefig(f'espectros_5_{j}.png',dpi = 200)
...@@ -9,17 +9,17 @@ import os ...@@ -9,17 +9,17 @@ import os
from scipy import interpolate from scipy import interpolate
# Solo levanto algunos experimentos # Solo levanto algunos experimentos
Calib_Files = """000007324-UV_Scan_withcalib_Haeffner Calib_Files = """000007209-UV_Scan_withcalib_Haeffner
""" """
#carpeta pc nico labo escritorio: #carpeta pc nico labo escritorio:
#C:\Users\Usuario\Documents\artiq\artiq_experiments\analisis\plots\20220503_EspectrosUVnuevos\Data #C:\Users\Usuario\Documents\artiq\artiq_experiments\analisis\plots\20220503_EspectrosUVnuevos\Data
carpeta = "./Data/"
def SeeKeys(files): def SeeKeys(files):
for i, fname in enumerate(files.split()): for i, fname in enumerate(files.split()):
data = h5py.File(fname+'.h5', 'r') # Leo el h5: Recordar que nuestros datos estan en 'datasets' data = h5py.File(carpeta + fname+'.h5', 'r') # Leo el h5: Recordar que nuestros datos estan en 'datasets'
print(fname) print(fname)
print(list(data['datasets'].keys())) print(list(data['datasets'].keys()))
...@@ -33,7 +33,7 @@ for i, fname in enumerate(Calib_Files.split()): ...@@ -33,7 +33,7 @@ for i, fname in enumerate(Calib_Files.split()):
print(SeeKeys(Calib_Files)) print(SeeKeys(Calib_Files))
print(i) print(i)
print(fname) print(fname)
data = h5py.File(fname+'.h5', 'r') # Leo el h5: Recordar que nuestros datos estan en 'datasets' data = h5py.File(carpeta + fname+'.h5', 'r') # Leo el h5: Recordar que nuestros datos estan en 'datasets'
print(list(data['datasets'].keys())) print(list(data['datasets'].keys()))
Amps.append(np.array(data['datasets']['UV_Amplitudes'])) Amps.append(np.array(data['datasets']['UV_Amplitudes']))
Freqs.append(np.array(data['datasets']['UV_Frequencies'])) Freqs.append(np.array(data['datasets']['UV_Frequencies']))
......
...@@ -315,7 +315,7 @@ def FullL(rabG, rabP, gPS = 0, gPD = 0, Detg = 0, Detp = 0, u = 0, lwg = 0, lwp ...@@ -315,7 +315,7 @@ def FullL(rabG, rabP, gPS = 0, gPD = 0, Detg = 0, Detp = 0, u = 0, lwg = 0, lwp
if betag !=0 and betap !=0: if betag !=0 and betap !=0:
#ESTA PARTE ES CUANDO AGREGAS MICROMOCION #ESTA PARTE ES CUANDO AGREGAS MICROMOCION
nmax = 2*int(betag) nmax = int(betag)
#print(nmax) #print(nmax)
Ltemp, Omega = LtempCalculus(betag,betap, drivefreq) Ltemp, Omega = LtempCalculus(betag,betap, drivefreq)
#print(factor) #print(factor)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment