Commit b37c1f1b authored by Nicolas Nunez Barreto's avatar Nicolas Nunez Barreto

xd

parent 9f5a811c
......@@ -89,7 +89,7 @@ CountsSplit_2ions.append(Split(Counts[4],len(Freqs[4])))
Ploteo curvas para ver que tal son
"""
jvec = [2] # de la 1 a la 9 vale la pena, despues no
jvec = [4] # de la 1 a la 9 vale la pena, despues no
Frequencies = Freqs[0]
......@@ -151,7 +151,9 @@ alpha = 0
drivefreq = 2*np.pi*22.135*1e6
SelectedCurveVec = [1,2,3,4,5,6,7,8,9,10,11]
#SelectedCurveVec = [1,2,3,4,5,6,7,8,9,10,11]
SelectedCurveVec = [4]
popt_SA_vec = []
pcov_SA_vec = []
......@@ -218,7 +220,11 @@ for selectedcurve in SelectedCurveVec:
pcov_SA_vec.append(pcov_3_SA)
FittedEITpi_3_SA_short, Detunings_3_SA_short = FitEIT_MM_single(FreqsDR, *popt_3_SA, plot=True)
freqslong = np.arange(min(FreqsDR), max(FreqsDR)+FreqsDR[1]-FreqsDR[0], 0.1*(FreqsDR[1]-FreqsDR[0]))
freqslong = np.arange(min(FreqsDR)-0*5e6, max(FreqsDR)+FreqsDR[1]-FreqsDR[0]-0*5e6, 0.1*(FreqsDR[1]-FreqsDR[0]))
# popt_3_SA[4]=1
# popt_3_SA[5]=0
# popt_3_SA[6]=0
FittedEITpi_3_SA_long, Detunings_3_SA_long = FitEIT_MM_single(freqslong, *popt_3_SA, plot=True)
DetuningsUV_vec.append(popt_3_SA[1])
......@@ -246,6 +252,19 @@ for selectedcurve in SelectedCurveVec:
print(f'listo med {selectedcurve}')
print(popt_3_SA)
# plt.figure(figsize=(4,3))
# #plt.errorbar(Detunings_3_SA_short, CountsDR, yerr=2*np.sqrt(CountsDR), fmt='o', color='darkgreen', alpha=0.5, capsize=2, markersize=2)
# plt.plot(Detunings_3_SA_long, [100*f for f in FittedEITpi_3_SA_long], color='darkolivegreen', linewidth=3, label=f'med {selectedcurve}')
# #plt.title(f'Sdop: {round(popt[0], 2)}, Spr: {round(popt[1], 2)}, T: {round(popt[2]*1e3, 2)} mK, detDop: {DetDoppler} MHz')
# plt.xlabel('Repump detuning (MHz)')
# plt.ylabel('Fluorescence (arb. units)')
# #plt.legend(loc='upper left', fontsize=20)
# plt.grid()
#%%
......
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