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
d34e9782
Commit
d34e9782
authored
5 years ago
by
Laurent Mercadier
Browse files
Options
Downloads
Patches
Plain Diff
gave names to XGM arrays in matchXgmTimPulseId()
parent
e3128bef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xgm.py
+5
-5
5 additions, 5 deletions
xgm.py
with
5 additions
and
5 deletions
xgm.py
+
5
−
5
View file @
d34e9782
...
...
@@ -744,15 +744,15 @@ def matchXgmTimPulseId(data, use_apd=True, intstart=None, intstop=None,
xr DataSet containing XGM and TIM signals with the share
dimension
'
pId
'
. Raw traces, raw XGM and raw APD are dropped.
'''
res
=
selectSASEinXGM
(
data
,
xgm
=
'
SCS_XGM
'
).
rename
({
'
XGMbunchId
'
:
'
pId
'
})
res2
=
selectSASEinXGM
(
data
,
xgm
=
'
SA3_XGM
'
).
rename
({
'
XGMbunchId
'
:
'
pId
'
})
res
=
selectSASEinXGM
(
data
,
xgm
=
'
SCS_XGM
'
).
rename
({
'
XGMbunchId
'
:
'
pId
'
})
.
rename
(
'
SCS_XGM
'
)
res2
=
selectSASEinXGM
(
data
,
xgm
=
'
SA3_XGM
'
).
rename
({
'
XGMbunchId
'
:
'
pId
'
})
.
rename
(
'
SA3_XGM
'
)
dropList
=
[
'
SCS_XGM
'
,
'
SA3_XGM
'
]
mergeList
=
[
res
,
res2
]
for
mcp
in
range
(
1
,
5
):
if
'
MCP{}apd
'
.
format
(
mcp
)
in
data
or
'
MCP{}raw
'
.
format
(
mcp
)
in
data
:
MCPapd
=
getTIMapd
(
data
,
mcp
=
mcp
,
use_apd
=
use_apd
,
intstart
=
intstart
,
intstop
=
intstop
,
bkgstart
=
bkgstart
,
bkgstop
=
bkgstop
,
t_offset
=
t_offset
,
npulses
=
npulses
).
rename
(
'
MCP{}apd
'
.
format
(
mcp
))
MCPapd
=
getTIMapd
(
data
,
mcp
=
mcp
,
use_apd
=
use_apd
,
intstart
=
intstart
,
intstop
=
intstop
,
bkgstart
=
bkgstart
,
bkgstop
=
bkgstop
,
t_offset
=
t_offset
,
npulses
=
npulses
).
rename
(
'
MCP{}apd
'
.
format
(
mcp
))
if
use_apd
:
MCPapd
=
MCPapd
.
rename
({
'
apdId
'
:
'
pId
'
})
else
:
...
...
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