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
SCS
ToolBox
Commits
7402ed47
Commit
7402ed47
authored
4 years ago
by
Loïc Le Guyader
Browse files
Options
Downloads
Patches
Plain Diff
Fix description
parent
6436a89f
No related branches found
No related tags found
1 merge request
!76
Extra data and xfel kernel
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bunch_pattern.py
+2
-2
2 additions, 2 deletions
bunch_pattern.py
with
2 additions
and
2 deletions
bunch_pattern.py
+
2
−
2
View file @
7402ed47
...
@@ -19,7 +19,7 @@ def extractBunchPattern(bp_table=None, key='sase3', runDir=None):
...
@@ -19,7 +19,7 @@ def extractBunchPattern(bp_table=None, key='sase3', runDir=None):
bp_table: DataArray corresponding to the mnemonics
"
bunchPatternTable
"
.
bp_table: DataArray corresponding to the mnemonics
"
bunchPatternTable
"
.
If None, the bunch pattern table is loaded using runDir.
If None, the bunch pattern table is loaded using runDir.
key: str, [
'
sase1
'
,
'
sase2
'
,
'
sase3
'
,
'
scs_ppl
'
]
key: str, [
'
sase1
'
,
'
sase2
'
,
'
sase3
'
,
'
scs_ppl
'
]
runDir:
karabo_data run directory
. Required only if bp_table is None.
runDir:
extra-data DataCollection
. Required only if bp_table is None.
Outputs:
Outputs:
bunchPattern: DataArray containing indices of the sase/laser pulses for
bunchPattern: DataArray containing indices of the sase/laser pulses for
...
@@ -214,4 +214,4 @@ def sortBAMdata(data, key='sase3'):
...
@@ -214,4 +214,4 @@ def sortBAMdata(data, key='sase3'):
ndata
=
xr
.
merge
(
mergeList
,
join
=
'
inner
'
)
ndata
=
xr
.
merge
(
mergeList
,
join
=
'
inner
'
)
for
k
in
data
.
attrs
.
keys
():
for
k
in
data
.
attrs
.
keys
():
ndata
.
attrs
[
k
]
=
data
.
attrs
[
k
]
ndata
.
attrs
[
k
]
=
data
.
attrs
[
k
]
return
ndata
return
ndata
\ No newline at end of file
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