Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PythonControl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PA
Operation
PythonControl
Commits
269a333d
Commit
269a333d
authored
2 months ago
by
Alexis GAMELIN
Browse files
Options
Downloads
Patches
Plain Diff
Update growth damp (version used for SB)
parent
3cfd7c77
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
growth_damp.py
+6
-2
6 additions, 2 deletions
growth_damp.py
with
6 additions
and
2 deletions
growth_damp.py
+
6
−
2
View file @
269a333d
...
...
@@ -42,6 +42,7 @@ def growth_damp_measurement(file,
tuneZ
=
DeviceProxy
(
"
ans/rf/bbfdataviewer.2-tunez
"
)
phc_C02
=
DeviceProxy
(
"
ans-c02/dg/phc-emit
"
)
phc_C16
=
DeviceProxy
(
"
ans-c16/dg/phc-emit
"
)
dcct
=
DeviceProxy
(
"
ANS/DG/DCCT-CTRL
"
)
# total_current = np.round(np.sum(remplissage.bunchescurrent),1)
file
[
"
filling_pattern_before
"
]
=
remplissage
.
bunchescurrent
...
...
@@ -51,6 +52,7 @@ def growth_damp_measurement(file,
file
[
"
emitX_C16_before
"
]
=
phc_C16
.
EmittanceH
file
[
"
emitZ_C02_before
"
]
=
phc_C02
.
EmittanceV
file
[
"
emitZ_C16_before
"
]
=
phc_C16
.
EmittanceV
file
[
"
dcct_current
"
]
=
dcct
.
current
growth_damp_core
(
file
,
**
kwargs
)
...
...
@@ -100,6 +102,7 @@ def growth_damp_core(file,
tuneZ
=
DeviceProxy
(
"
ans/rf/bbfdataviewer.2-tunez
"
)
fbt
=
get_fbt_device
()
selected
=
fbt
.
selectedBunchNumberADC0
check_feedback_stoped
()
if
datasize
!=
4
:
...
...
@@ -131,7 +134,6 @@ def growth_damp_core(file,
# Measurement
delay
.
activateChannelA
=
True
fbt
.
acquiredataonce
()
sleep
(
0.5
+
window_width
*
1e-6
)
# value to be tuned
delay
.
activateChannelA
=
False
# Save data from buffer
...
...
@@ -150,6 +152,8 @@ def growth_damp_core(file,
tuneZ
.
init
()
tuneX
.
init
()
fbt
.
selectedBunchNumberADC0
=
selected
def
_avg_mean
(
signal
,
window
):
N
=
len
(
signal
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment