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
2055cac6
Commit
2055cac6
authored
Dec 21, 2023
by
Marcelo Luda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lolo2
parent
78bc9727
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1224 additions
and
98 deletions
+1224
-98
CPT_plotter_20231123.py
...plots/20231123_CPTconmicromocion3/CPT_plotter_20231123.py
+89
-96
analisis_superajuste.py
...plots/20231123_CPTconmicromocion3/analisis_superajuste.py
+520
-0
lolo_CPT_plotter_20231123.py
.../20231123_CPTconmicromocion3/lolo_CPT_plotter_20231123.py
+38
-2
lolo_analisis_superajuste.py
.../20231123_CPTconmicromocion3/lolo_analisis_superajuste.py
+577
-0
No files found.
analisis/plots/20231123_CPTconmicromocion3/CPT_plotter_20231123.py
View file @
2055cac6
This diff is collapsed.
Click to expand it.
analisis/plots/20231123_CPTconmicromocion3/analisis_superajuste.py
0 → 100644
View file @
2055cac6
This diff is collapsed.
Click to expand it.
analisis/plots/20231123_CPTconmicromocion3/lolo_CPT_plotter_20231123.py
View file @
2055cac6
...
...
@@ -920,6 +920,9 @@ plt.grid()
#%%
"""
AHORA INTENTO SUPER AJUSTES O SEA CON OFFSETXPI Y DETDOPPLER INCLUIDOS
La 0 no ajusta bien incluso con todos los parametros libres
De la 1 a la 11 ajustan bien
"""
...
...
@@ -963,8 +966,8 @@ alpha = 0
drivefreq
=
2
*
np
.
pi
*
22.135
*
1e6
SelectedCurveVec
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
]
#SelectedCurveVec = [
9
]
SelectedCurveVec
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
]
#SelectedCurveVec = [
10
]
if
not
'popt_SA_vec'
in
globals
()
.
keys
()
or
len
(
popt_SA_vec
)
==
0
:
...
...
@@ -1152,9 +1155,42 @@ plt.grid()
#%%
from
scipy.special
import
jv
def
expo
(
x
,
tau
,
A
,
B
):
return
A
*
np
.
exp
(
x
/
tau
)
+
B
def
cuadratica
(
x
,
a
,
c
):
return
a
*
(
x
**
2
)
+
c
def
InverseMicromotionSpectra
(
beta
,
A
,
det
,
x0
,
gamma
,
B
):
ftrap
=
22.1
#gamma=30
P
=
((
jv
(
0
,
beta
)
**
2
)
/
((((
det
-
x0
)
**
2
)
+
(
0.5
*
gamma
)
**
2
)
**
2
))
*
(
-
2
*
(
det
-
x0
))
i
=
1
#print(P)
while
i
<=
5
:
P
=
P
+
(
-
2
*
(
det
-
x0
))
*
((
jv
(
i
,
beta
))
**
2
)
/
(((((
det
-
x0
)
+
i
*
ftrap
)
**
2
)
+
(
0.5
*
gamma
)
**
2
)
**
2
)
+
(
-
2
*
(
det
-
x0
))
*
(((
jv
(
-
i
,
beta
))
**
2
)
/
((((
det
-
x0
)
-
i
*
ftrap
)
**
2
)
+
(
0.5
*
gamma
)
**
2
)
**
2
)
i
=
i
+
1
#print(P)
#return 1/(A*P+B)
return
1
/
(
A
*
P
+
B
)
def
InverseMicromotionSpectra_raw
(
beta
,
A
,
det
,
B
):
ftrap
=
22.1
gamma
=
21
P
=
((
jv
(
0
,
beta
)
**
2
)
/
((((
det
)
**
2
)
+
(
0.5
*
gamma
)
**
2
)
**
2
))
*
(
-
2
*
(
det
))
i
=
1
#print(P)
while
i
<=
3
:
P
=
P
+
(
-
2
*
(
det
))
*
((
jv
(
i
,
beta
))
**
2
)
/
(((((
det
)
+
i
*
ftrap
)
**
2
)
+
(
0.5
*
gamma
)
**
2
)
**
2
)
+
(
-
2
*
(
det
))
*
(((
jv
(
-
i
,
beta
))
**
2
)
/
((((
det
)
-
i
*
ftrap
)
**
2
)
+
(
0.5
*
gamma
)
**
2
)
**
2
)
i
=
i
+
1
#print(P)
return
A
/
P
+
B
"""
Temperatura vs
"""
...
...
analisis/plots/20231123_CPTconmicromocion3/lolo_analisis_superajuste.py
0 → 100644
View file @
2055cac6
This diff is collapsed.
Click to expand it.
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