Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fromRoot
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
johannes bilk
fromRoot
Commits
f77722a6
Commit
f77722a6
authored
1 year ago
by
johannes bilk
Browse files
Options
Downloads
Patches
Plain Diff
fixed an issue with 'includeUnselected' bool
parent
c6b5557b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rootable/detectors/pxd.py
+2
-2
2 additions, 2 deletions
rootable/detectors/pxd.py
rootable/rootable.py
+1
-1
1 addition, 1 deletion
rootable/rootable.py
with
3 additions
and
3 deletions
rootable/detectors/pxd.py
+
2
−
2
View file @
f77722a6
...
...
@@ -196,7 +196,7 @@ class PXD(FancyDict):
except
:
return
KeyError
def
getDigits
(
self
,
eventTree
:
TTree
,
includeUnSelected
:
bool
=
False
)
->
None
:
def
getDigits
(
self
,
eventTree
:
TTree
)
->
None
:
"""
reorganizes digits, so that they fit to the clusters
"""
...
...
@@ -224,7 +224,7 @@ class PXD(FancyDict):
self
.
data
[
'
vCellIDs
'
]
=
np
.
array
(
self
.
data
[
'
vCellIDs
'
],
dtype
=
object
)
self
.
data
[
'
cellCharges
'
]
=
np
.
array
(
self
.
data
[
'
cellCharges
'
],
dtype
=
object
)
if
includeUnSelected
:
if
self
.
includeUnSelected
:
unselectedClusters
=
self
.
findUnselectedClusters
.
getDigits
(
eventTree
)
for
key
in
unselectedClusters
:
self
.
data
[
key
]
=
np
.
concatenate
((
self
.
data
[
key
],
unselectedClusters
[
key
]))
...
...
This diff is collapsed.
Click to expand it.
rootable/rootable.py
+
1
−
1
View file @
f77722a6
...
...
@@ -116,7 +116,7 @@ class Rootable:
def
getDigits
(
self
)
->
None
:
self
.
gotDigits
=
True
self
.
pxd
.
getDigits
(
self
.
eventTree
,
self
.
includeUnSelected
)
self
.
pxd
.
getDigits
(
self
.
eventTree
)
def
getMatrices
(
self
,
matrixSize
:
tuple
=
(
9
,
9
))
->
None
:
self
.
gotMatrices
=
True
...
...
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