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
!183
Convert BAM to ps units
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Convert BAM to ps units
bam-units
into
master
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Laurent Mercadier
requested to merge
bam-units
into
master
3 years ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
Makes sure that the BAM units are always retreived in ps
Closes
#51 (closed)
0
0
Merge request reports
Compare
master
version 1
e60d235c
3 years ago
master (base)
and
version 1
latest version
84f761c5
2 commits,
3 years ago
version 1
e60d235c
1 commit,
3 years ago
1 file
+
4
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/toolbox_scs/detectors/bam_detectors.py
+
4
−
0
Options
@@ -87,6 +87,10 @@ def get_bam(run, mnemonics=None, merge_with=None, bunchPattern='sase3'):
@@ -87,6 +87,10 @@ def get_bam(run, mnemonics=None, merge_with=None, bunchPattern='sase3'):
val
=
run
.
get_array
(
*
run_mnemonics
[
m
].
values
(),
roi
=
roi
,
name
=
m
)
val
=
run
.
get_array
(
*
run_mnemonics
[
m
].
values
(),
roi
=
roi
,
name
=
m
)
log
.
debug
(
f
'
Loading
{
m
}
from DataCollection.
'
)
log
.
debug
(
f
'
Loading
{
m
}
from DataCollection.
'
)
val
[
run_mnemonics
[
m
][
'
dim
'
][
0
]]
=
np
.
arange
(
2700
)
val
[
run_mnemonics
[
m
][
'
dim
'
][
0
]]
=
np
.
arange
(
2700
)
# Since winter shutdown 2021-2022, units changed from ps to fs
# Here we convert to ps
if
run_mnemonics
[
m
][
'
key
'
]
!=
'
data.lowChargeArrivalTime
'
:
val
*=
1e-3
ds
=
ds
.
merge
(
val
,
join
=
'
inner
'
)
ds
=
ds
.
merge
(
val
,
join
=
'
inner
'
)
# check if bunch pattern table exists
# check if bunch pattern table exists
Loading