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
Merge requests
!63
Fix warning condition for TIM apd
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix warning condition for TIM apd
tim_warning
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Laurent Mercadier
requested to merge
tim_warning
into
master
5 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
d001acf0
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
d001acf0
Fix warning condition for TIM apd
· d001acf0
Laurent Mercadier
authored
5 years ago
xgm.py
+
1
−
1
Options
@@ -573,7 +573,7 @@ def getTIMapd(data, mcp=1, use_apd=True, intstart=None, intstop=None,
print
(
f
'
Warning: apd parameter was set to record 1 pulse out of
{
period
}
@ 4.5 MHz
'
+
f
'
but XFEL delivered 1 pulse out of
{
period_from_bunch_pattern
}
.
'
)
maxPulses
=
data
[
'
npulses_sase3
'
].
max
().
values
if
period
*
pulseIdDim
<
period_from_bunch_pattern
*
maxPulses
:
if
period
*
pulseIdDim
<
period_from_bunch_pattern
*
(
maxPulses
-
1
)
:
print
(
f
'
Warning: Number of pulses and/or rep. rate in apd parameters were set
'
+
f
'
too low (
{
pulseIdDim
}
)to record the
{
maxPulses
}
SASE 3 pulses
'
)
peaks
=
data
[
f
'
MCP
{
mcp
}
apd
'
]
Loading