Skip to content

Commit

Permalink
psana1 common mode compatibility fix, revisit
Browse files Browse the repository at this point in the history
  • Loading branch information
philiph-slac committed Nov 19, 2024
1 parent f7e17f4 commit 86f325d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions calibrationSuite/basicSuiteScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,16 @@ def rowCommonModeCorrection3d(self, frames, arbitraryCut=1000):
frames[module] = self.rowCommonModeCorrection(frames[module], arbitraryCut)
return frames

def colCommonModeCorrection3d(self, frames, cut=1000, switchedPixels=None):
def colCommonModeCorrection3d(self, frames, cut=1000, switchedPixels = None
):
if switchedPixels is None:
switchedPixels = self.getSwitchedPixels(frames)

for module in self.analyzedModules:
frames[module] = self.colCommonModeCorrection(frames[module], cut, switchedPixels[module])
sp = None
if switchedPixels is not None: ## dumb as written
sp = switchedPixels[module]
frames[module] = self.colCommonModeCorrection(frames[module], cut, sp)
return frames

def rowCommonModeCorrection(self, frame, arbitraryCut=1000):
Expand Down

0 comments on commit 86f325d

Please sign in to comment.