Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
ToolBox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Kluyver
ToolBox
Commits
91499d8d
Commit
91499d8d
authored
5 years ago
by
Laurent Mercadier
Browse files
Options
Downloads
Patches
Plain Diff
Detailed docstring in sortBAMdata()
parent
18722256
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bunch_pattern.py
+5
-1
5 additions, 1 deletion
bunch_pattern.py
with
5 additions
and
1 deletion
bunch_pattern.py
+
5
−
1
View file @
91499d8d
...
...
@@ -183,7 +183,11 @@ def repRate(data, sase='sase3'):
def
sortBAMdata
(
data
,
key
=
'
sase3
'
):
'''
Extracts beam arrival monitor data from the raw arrays
'
BAM6
'
,
'
BAM7
'
, etc...
according to the bunchPatternTable.
according to the bunchPatternTable. The BAM arrays contain 7220 values, which
corresponds to FLASH busrt length of 800 us @ 9 MHz. The bunchPatternTable
only has 2700 values, corresponding to XFEL 600 us burst length @ 4.5 MHz.
Hence, we truncate the BAM arrays to 5400 with a stride of 2 and match them
to the bunchPatternTable.
Inputs:
data: xarray Dataset containing BAM arrays
key: str, [
'
sase1
'
,
'
sase2
'
,
'
sase3
'
,
'
scs_ppl
'
]
...
...
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