Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 2cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC DEL 1ns 2cha
Commits
92c8c669
Commit
92c8c669
authored
Nov 03, 2016
by
Jan Pospisil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed inverted pulse mode
parent
5d8111c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Ffpg.py
sw/Ffpg.py
+4
-4
No files found.
sw/Ffpg.py
View file @
92c8c669
...
@@ -370,10 +370,10 @@ class Ffpg(object):
...
@@ -370,10 +370,10 @@ class Ffpg(object):
assert
(
pulseDelay
>=
0
)
and
(
pulseDelay
<
lhcBunchPeriod
),
"Pulse starts out of the LHC bunch period!"
assert
(
pulseDelay
>=
0
)
and
(
pulseDelay
<
lhcBunchPeriod
),
"Pulse starts out of the LHC bunch period!"
assert
(
pulseStop
>
pulseDelay
)
and
(
pulseStop
<=
lhcBunchPeriod
),
"Pulse stops out of the LHC bunch period!"
assert
(
pulseStop
>
pulseDelay
)
and
(
pulseStop
<=
lhcBunchPeriod
),
"Pulse stops out of the LHC bunch period!"
if
polarity
==
0
:
# Swap `
start` and `s
top` for inverted mode
if
polarity
==
0
:
# Swap `
pulseDelay` and `pulseS
top` for inverted mode
tmp
=
start
tmp
=
pulseDelay
start
=
s
top
pulseDelay
=
pulseS
top
s
top
=
tmp
pulseS
top
=
tmp
# calculate pulse shape inside the bunch
# calculate pulse shape inside the bunch
rfToBunchRatio
=
int
(
round
(
lhcBunchPeriod
/
clockPeriod
))
rfToBunchRatio
=
int
(
round
(
lhcBunchPeriod
/
clockPeriod
))
...
...
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