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
e8e37b51
Commit
e8e37b51
authored
Apr 08, 2025
by
Vlatko, Carolina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actualizacion codigo modulacion rf
parent
67edbc87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
Fluorescence_correlation.py
artiq_master/repository/Tests/Fluorescence_correlation.py
+12
-5
No files found.
artiq_master/repository/Tests/Fluorescence_correlation.py
View file @
e8e37b51
...
...
@@ -190,9 +190,13 @@ class FluorescenceCorrelation(EnvExperiment):
## Datos
self
.
set_dataset
(
"time_stamps"
,
[],
broadcast
=
True
,
archive
=
True
)
self
.
set_dataset
(
"tiem
_stamps_corrected"
,
[],
broadcast
=
True
,
archive
=
True
)
#self.set_dataset("time
_stamps_corrected", [], broadcast=True, archive=True)
self
.
set_dataset
(
"counts"
,
[],
broadcast
=
True
,
archive
=
True
)
self
.
set_dataset
(
"counts_err"
,
[],
broadcast
=
True
,
archive
=
True
)
# Datos postprocesado
self
.
set_dataset
(
"fit_params"
,
[],
broadcast
=
True
,
archive
=
True
)
self
.
set_dataset
(
"x_data"
,
[],
broadcast
=
True
,
archive
=
True
)
self
.
set_dataset
(
"y_data"
,
[],
broadcast
=
True
,
archive
=
True
)
# Parámetros
self
.
set_dataset
(
"f_rf"
,
self
.
f_rf
,
broadcast
=
False
,
archive
=
True
)
...
...
@@ -543,12 +547,15 @@ class FluorescenceCorrelation(EnvExperiment):
x_extended
=
np
.
concatenate
([
bin_edges
[:
-
1
]
+
i
*
self
.
tau_rf
for
i
in
range
(
3
)])
y_extended
=
np
.
tile
(
hist
,
3
)
x_extended_dense
=
np
.
arange
(
np
.
min
(
x_extended
),
np
.
max
(
x_extended
),
0.1
*
(
x_extended
[
1
]
-
x_extended
[
0
]))
#
x_extended_dense = np.arange(np.min(x_extended),np.max(x_extended),0.1*(x_extended[1]-x_extended[0]))
params
,
_
=
curve_fit
(
self
.
sinusoidal
,
x_extended
,
y_extended
,
p0
=
[
max
(
y_extended
),
2
*
np
.
pi
/
self
.
tau_rf
,
0
,
np
.
mean
(
y_extended
)])
# amps.append(np.abs(params[0]))
return
x_extended
,
y_extended
,
params
self
.
append_to_dataset
(
"fit_params"
,
params
)
self
.
append_to_dataset
(
"x_data"
,
x_extended
)
self
.
append_to_dataset
(
"y_data"
,
y_extended
)
return
@
rpc
def
run
(
self
):
...
...
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