Skip to content
Snippets Groups Projects
Commit f77722a6 authored by johannes bilk's avatar johannes bilk
Browse files

fixed an issue with 'includeUnselected' bool

parent c6b5557b
No related branches found
No related tags found
No related merge requests found
......@@ -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]))
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment