Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
artiq_experiments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nicolas Nunez Barreto
artiq_experiments
Commits
cd2024f7
Commit
cd2024f7
authored
Apr 15, 2024
by
Nicolas Nunez Barreto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
todo
parent
655d8386
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
180 additions
and
2 deletions
+180
-2
CPT_plotter_20231218.py
...218_CPT_DosLaseres_Reflotoajustes/CPT_plotter_20231218.py
+10
-0
lolo_CPT_plotter_20231218.py
...PT_DosLaseres_Reflotoajustes/lolo_CPT_plotter_20231218.py
+2
-2
CPT_plotter_RDE.py
...s/20240312_RotationalDopplerShift_news/CPT_plotter_RDE.py
+168
-0
000017121-IR_Scan_withcal_optimized.h5
...hift_news/Data/CPT/000017121-IR_Scan_withcal_optimized.h5
+0
-0
000017123-IR_Scan_withcal_optimized.h5
...hift_news/Data/CPT/000017123-IR_Scan_withcal_optimized.h5
+0
-0
000017170-IR_Scan_withcal_optimized.h5
...hift_news/Data/CPT/000017170-IR_Scan_withcal_optimized.h5
+0
-0
No files found.
analisis/plots/20231218_CPT_DosLaseres_Reflotoajustes/CPT_plotter_20231218.py
View file @
cd2024f7
...
...
@@ -12,6 +12,9 @@ from scipy import interpolate
CPT con tres laseres pero lso dos IR son el mismo entonces las DD son mas finas
"""
os
.
chdir
(
'/home/nico/Documents/artiq_experiments/analisis/plots/20231218_CPT_DosLaseres_Reflotoajustes/Data/'
)
#C:\Users\Usuario\Documents\artiq\artiq_experiments\analisis\plots\20211223_CPT_DosLaseres_v07_ChristmasSpecial\Data
ALL_FILES
=
"""000016420-IR_Scan_withcal_optimized
...
...
@@ -140,6 +143,13 @@ if do_fit:
freqslong
=
np
.
arange
(
min
(
FreqsDR
),
max
(
FreqsDR
)
+
FreqsDR
[
1
]
-
FreqsDR
[
0
],
0.1
*
(
FreqsDR
[
1
]
-
FreqsDR
[
0
]))
FittedEITpi_1_long
,
Detunings_1_long
=
FitEIT_MM_1ion
(
freqslong
,
*
popt_1
,
plot
=
True
)
DetDop
=
popt_1
[
1
]
DetRep
=
popt_1
[
2
]
Sdop
=
popt_1
[
3
]
Spr
=
popt_1
[
4
]
Srep
=
popt_1
[
5
]
#%%
plt
.
figure
()
...
...
analisis/plots/20231218_CPT_DosLaseres_Reflotoajustes/lolo_CPT_plotter_20231218.py
View file @
cd2024f7
...
...
@@ -89,8 +89,8 @@ plt.legend()
from
scipy.optimize
import
curve_fit
import
time
cwd
=
os
.
getcwd
()
os
.
chdir
(
'../20231123_CPTconmicromocion3'
)
#
cwd = os.getcwd()
#
os.chdir('../20231123_CPTconmicromocion3')
from
Data.EITfit.lolo_modelo_full_3niveles
import
GenerateNoisyCPT_fit
os
.
chdir
(
cwd
)
...
...
analisis/plots/20240312_RotationalDopplerShift_news/CPT_plotter_RDE.py
0 → 100644
View file @
cd2024f7
import
h5py
import
matplotlib.pyplot
as
plt
import
numpy
as
np
import
sys
import
re
import
ast
from
scipy.optimize
import
curve_fit
import
os
from
scipy
import
interpolate
"""
Primero tengo mediciones de espectros cpt de un ion variando la tension dc_A
"""
#C:\Users\Usuario\Documents\artiq\artiq_experiments\analisis\plots\20220106_CPT_DosLaseres_v08_TISA_DR\Data
os
.
chdir
(
'/home/nico/Documents/artiq_experiments/analisis/plots/20240312_RotationalDopplerShift_news/Data/CPT/'
)
"""
CPT con tres laseres pero lso dos IR son el mismo entonces las DD son mas finas
"""
#C:\Users\Usuario\Documents\artiq\artiq_experiments\analisis\plots\20211223_CPT_DosLaseres_v07_ChristmasSpecial\Data
ALL_FILES
=
"""000017121-IR_Scan_withcal_optimized
000017123-IR_Scan_withcal_optimized
000017170-IR_Scan_withcal_optimized
"""
def
SeeKeys
(
files
):
for
i
,
fname
in
enumerate
(
files
.
split
()):
data
=
h5py
.
File
(
fname
+
'.h5'
,
'r'
)
# Leo el h5: Recordar que nuestros datos estan en 'datasets'
print
(
fname
)
print
(
list
(
data
[
'datasets'
]
.
keys
()))
print
(
SeeKeys
(
ALL_FILES
))
#carpeta pc nico labo escritorio:
#C:\Users\Usuario\Documents\artiq\artiq_experiments\analisis\plots\20211101_CPT_DosLaseres_v03\Data
Counts
=
[]
Freqs
=
[]
AmpTisa
=
[]
UVCPTAmp
=
[]
No_measures
=
[]
for
i
,
fname
in
enumerate
(
ALL_FILES
.
split
()):
print
(
str
(
i
)
+
' - '
+
fname
)
#print(fname)
data
=
h5py
.
File
(
fname
+
'.h5'
,
'r'
)
# Leo el h5: Recordar que nuestros datos estan en 'datasets'
# Aca hago algo repugnante para poder levantar los strings que dejamos
# que además tenian un error de tipeo al final. Esto no deberá ser necesario
# cuando se solucione el error este del guardado.
Freqs
.
append
(
np
.
array
(
data
[
'datasets'
][
'IR1_Frequencies'
]))
Counts
.
append
(
np
.
array
(
data
[
'datasets'
][
'counts_spectrum'
]))
#AmpTisa.append(np.array(data['datasets']['TISA_CPT_amp']))
#UVCPTAmp.append(np.array(data['datasets']['UV_CPT_amp']))
#No_measures.append(np.array(data['datasets']['no_measures']))
#%%
#Barriendo angulo del IR con tisa apagado
jvec
=
[
1
]
jselected
=
jvec
plt
.
figure
()
i
=
0
for
j
in
jvec
:
if
j
in
jselected
:
plt
.
errorbar
([
2
*
f
*
1e-6
for
f
in
Freqs
[
j
]],
Counts
[
j
],
yerr
=
np
.
sqrt
(
Counts
[
j
]),
fmt
=
'o'
,
capsize
=
2
,
markersize
=
2
)
#plt.plot([2*f*1e-6 for f in Freqs[j]], Counts[j], 'o-', label=f'Amp Tisa: {AmpTisa[i]}', mb arkersize=3)
i
=
i
+
1
plt
.
xlabel
(
'Frecuencia (MHz)'
)
plt
.
ylabel
(
'counts'
)
plt
.
grid
()
plt
.
legend
()
#%%
from
scipy.optimize
import
curve_fit
import
time
phidoppler
,
titadoppler
=
0
,
90
phirepump
,
titarepump
=
0
,
90
phiprobe
=
0
titaprobe
=
0.1
Temp
=
0.5e-3
sg
=
0.544
sp
=
4.5
sr
=
0
DetRepump
=
0
lw
=
0.1
DopplerLaserLinewidth
,
RepumpLaserLinewidth
,
ProbeLaserLinewidth
=
lw
,
lw
,
lw
#ancho de linea de los laseres
u
=
32.5e6
#B = (u/(2*np.pi))/c
gPS
,
gPD
,
=
2
*
np
.
pi
*
21.58e6
,
2
*
np
.
pi
*
1.35e6
alpha
=
0
drivefreq
=
2
*
np
.
pi
*
22.135
*
1e6
noiseamplitude
=
0
selectedcurve
=
1
FreqsDR
=
Freqs
[
selectedcurve
]
CountsDR
=
Counts
[
selectedcurve
]
freqslong
=
np
.
arange
(
min
(
FreqsDR
),
max
(
FreqsDR
)
+
FreqsDR
[
1
]
-
FreqsDR
[
0
],
0.1
*
(
FreqsDR
[
1
]
-
FreqsDR
[
0
]))
CircPr
=
1
alpha
=
0
def
FitEIT_MM_1ion
(
Freqs
,
offset
,
DetDoppler
,
DetRepump
,
SG
,
SP
,
SR
,
SCALE1
,
OFFSET
,
TEMP
,
U
,
plot
=
False
):
#def FitEIT_MM(freqs, SG, SP, SCALE1, OFFSET, BETA1):
# BETA1 = 0
# SG = 0.6
# SP = 8.1
# TEMP = 0.2e-3
# U = 32.5e6
freqs
=
[
2
*
f
*
1e-6
-
offset
for
f
in
Freqs
[:
-
1
]]
#Detunings, Fluorescence1 = PerformExperiment_8levels_MM(SG, SP, gPS, gPD, DetDoppler, u, DopplerLaserLinewidth, ProbeLaserLinewidth, TEMP, alpha, phidoppler, titadoppler, phiprobe, titaprobe, BETA1, drivefreq, min(freqs), max(freqs)+(freqs[1]-freqs[0]), freqs[1]-freqs[0], circularityprobe=CircPr, plot=False, solvemode=1, detpvec=None)
Detunings
,
Fluorescence1
=
GenerateNoisyCPT_fit
(
SG
,
SR
,
SP
,
gPS
,
gPD
,
DetDoppler
,
DetRepump
,
U
,
DopplerLaserLinewidth
,
RepumpLaserLinewidth
,
ProbeLaserLinewidth
,
TEMP
,
alpha
,
phidoppler
,
titadoppler
,
phiprobe
,
[
titaprobe
],
phirepump
,
titarepump
,
freqs
,
plot
=
False
,
solvemode
=
1
,
detpvec
=
None
,
noiseamplitude
=
noiseamplitude
)
ScaledFluo1
=
np
.
array
([
f
*
SCALE1
+
OFFSET
for
f
in
Fluorescence1
])
if
plot
:
return
ScaledFluo1
,
Detunings
else
:
return
ScaledFluo1
#return ScaledFluo1
do_fit
=
True
if
do_fit
:
popt_2
,
pcov_2
=
curve_fit
(
FitEIT_MM_1ion
,
FreqsDR
,
CountsDR
,
p0
=
[
430
,
-
25
,
12
,
0.5
,
13
,
11
,
3e4
,
2e3
,
0.5e-3
,
32e6
],
bounds
=
((
0
,
-
100
,
-
20
,
0
,
0
,
0
,
0
,
0
,
0
,
20e6
),
(
1000
,
0
,
50
,
2
,
20
,
20
,
5e6
,
5e4
,
15e-3
,
40e6
)))
FittedEITpi_1_short
,
Detunings_1_short
=
FitEIT_MM_1ion
(
FreqsDR
,
*
popt_2
,
plot
=
True
)
freqslong
=
np
.
arange
(
min
(
FreqsDR
),
max
(
FreqsDR
)
+
FreqsDR
[
1
]
-
FreqsDR
[
0
],
0.1
*
(
FreqsDR
[
1
]
-
FreqsDR
[
0
]))
FittedEITpi_1_long
,
Detunings_1_long
=
FitEIT_MM_1ion
(
freqslong
,
*
popt_2
,
plot
=
True
)
DetDop
=
popt_2
[
1
]
DetRep
=
popt_2
[
2
]
Sdop
=
popt_2
[
3
]
Spr
=
popt_2
[
4
]
Srep
=
popt_2
[
5
]
#%%
plt
.
figure
()
plt
.
errorbar
(
Detunings_1_short
,
CountsDR
,
yerr
=
2
*
np
.
sqrt
(
CountsDR
),
fmt
=
'o'
,
color
=
'red'
,
alpha
=
0.5
,
capsize
=
2
,
markersize
=
2
)
plt
.
plot
(
Detunings_1_long
,
FittedEITpi_1_long
,
color
=
'darkolivegreen'
,
linewidth
=
3
,
label
=
'med 1'
)
#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
(
'Detuning (MHz)'
)
plt
.
ylabel
(
'Counts'
)
#plt.xlim(-20,0)
plt
.
legend
(
loc
=
'upper left'
,
fontsize
=
20
)
plt
.
grid
()
\ No newline at end of file
analisis/plots/20240312_RotationalDopplerShift_news/Data/CPT/000017121-IR_Scan_withcal_optimized.h5
0 → 100644
View file @
cd2024f7
File added
analisis/plots/20240312_RotationalDopplerShift_news/Data/CPT/000017123-IR_Scan_withcal_optimized.h5
0 → 100644
View file @
cd2024f7
File added
analisis/plots/20240312_RotationalDopplerShift_news/Data/CPT/000017170-IR_Scan_withcal_optimized.h5
0 → 100644
View file @
cd2024f7
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment