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
c0518a5c
Commit
c0518a5c
authored
Mar 22, 2023
by
Nicolas Nunez Barreto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
analisis
parent
2ce695c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
CPT_plotter_20230321.py
analisis/plots/20230321_heatingrate/CPT_plotter_20230321.py
+22
-8
No files found.
analisis/plots/20230321_heatingrate/CPT_plotter_20230321.py
View file @
c0518a5c
...
@@ -172,7 +172,7 @@ plt.plot(freqslongpi, FittedEITpi)
...
@@ -172,7 +172,7 @@ plt.plot(freqslongpi, FittedEITpi)
"""
"""
Simulo CPTs con todos esos parámetros para distintas temperaturas
Simulo CPTs con todos esos parámetros para distintas temperaturas
"""
"""
TempVecTeorico
=
np
.
arange
(
1
,
2
1
,
1
)
TempVecTeorico
=
np
.
arange
(
1
,
3
1
,
1
)
CurvasTeoricas
=
[]
CurvasTeoricas
=
[]
for
tempi
in
TempVecTeorico
:
for
tempi
in
TempVecTeorico
:
...
@@ -213,8 +213,10 @@ Heating_tim = Times[meas][:maxi]
...
@@ -213,8 +213,10 @@ Heating_tim = Times[meas][:maxi]
Heating_tim_ms
=
[
t
*
1e3
for
t
in
Heating_tim
]
Heating_tim_ms
=
[
t
*
1e3
for
t
in
Heating_tim
]
Heating_med
=
[
2
*
c
for
c
in
Counts_heating
[
meas
][:
maxi
]]
Heating_med
=
[
2
*
c
for
c
in
Counts_heating
[
meas
][:
maxi
]]
ErrorHeating_med
=
[
2
*
np
.
sqrt
(
c
)
for
c
in
Counts_heating
[
meas
][:
maxi
]]
Temperaturas_interpoladas
=
[
float
(
interpolado
(
h
))
for
h
in
Heating_med
]
Temperaturas_interpoladas
=
[
float
(
interpolado
(
h
))
for
h
in
Heating_med
]
Error_Temperaturas_interpoladas
=
[
float
(
interpolado
(
Heating_med
[
k
]
+
0.5
*
ErrorHeating_med
[
k
]))
-
Temperaturas_interpoladas
[
k
]
for
k
in
range
(
len
(
Heating_med
))]
plt
.
figure
()
plt
.
figure
()
plt
.
plot
(
FluosDRTeo
,
[
1
*
t
for
t
in
TempVecTeorico
],
'o'
,
color
=
'orange'
)
plt
.
plot
(
FluosDRTeo
,
[
1
*
t
for
t
in
TempVecTeorico
],
'o'
,
color
=
'orange'
)
...
@@ -223,23 +225,35 @@ plt.xlabel('Cuentas de DR teoricas')
...
@@ -223,23 +225,35 @@ plt.xlabel('Cuentas de DR teoricas')
plt
.
ylabel
(
'Temperatura (mK)'
)
plt
.
ylabel
(
'Temperatura (mK)'
)
plt
.
figure
()
plt
.
figure
()
plt
.
plot
(
Heating_med
,
Heating_tim
,
'o'
,
color
=
'blue'
)
#plt.plot(Heating_med, Heating_tim, 'o', color='blue')
plt
.
xlabel
(
'Cuentas de DR medidas'
)
plt
.
errorbar
(
Heating_tim
,
Heating_med
,
yerr
=
ErrorHeating_med
,
fmt
=
'o'
,
capsize
=
2
,
markersize
=
2
)
plt
.
ylabel
(
'Heating time (s)'
)
plt
.
ylabel
(
'Cuentas de DR medidas'
)
plt
.
xlabel
(
'Heating time (s)'
)
def
lineal
(
x
,
a
,
b
):
def
lineal
(
x
,
a
,
b
):
return
a
*
x
+
b
return
a
*
x
+
b
#p1,p2 = curve_fit(lineal, Heating_tim_ms, Temperaturas_interpoladas, sigma=Error_Temperaturas_interpoladas)
p1
,
p2
=
curve_fit
(
lineal
,
Heating_tim_ms
,
Temperaturas_interpoladas
)
p1
,
p2
=
curve_fit
(
lineal
,
Heating_tim_ms
,
Temperaturas_interpoladas
)
#%%
"""
Grafico finalmente el plot del heating rate de la trampa
"""
plt
.
figure
()
plt
.
figure
()
plt
.
plot
(
Heating_tim_ms
,
Temperaturas_interpoladas
,
'o'
)
#plt.plot(Heating_tim_ms,Temperaturas_interpoladas,'o')
plt
.
plot
(
Heating_tim_ms
,
lineal
(
np
.
array
(
Heating_tim_ms
),
*
p1
))
plt
.
errorbar
(
Heating_tim_ms
,
Temperaturas_interpoladas
,
yerr
=
np
.
array
(
Error_Temperaturas_interpoladas
),
fmt
=
'o'
,
capsize
=
2
,
markersize
=
7
,
color
=
'black'
)
plt
.
plot
(
Heating_tim_ms
,
lineal
(
np
.
array
(
Heating_tim_ms
),
*
p1
),
color
=
'red'
)
plt
.
xlabel
(
'Heating time (ms)'
)
plt
.
xlabel
(
'Heating time (ms)'
)
plt
.
ylabel
(
'Temperature (mK)'
)
plt
.
ylabel
(
'Temperature (mK)'
)
plt
.
title
(
f
'Heating rate: {round(p1[0],2)} mK/ms'
)
plt
.
grid
()
plt
.
title
(
f
'Heating rate: ({round(p1[0],2)} +- {round(np.sqrt(p2[0][0]),2)}) mK/ms'
)
print
(
f
'Heating rate:
{round(p1[0],2)}
mK/ms'
)
print
(
f
'Heating rate:
({round(p1[0],2)} +- {round(np.sqrt(p2[0][0]),2)})
mK/ms'
)
#%%
#%%
...
...
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