Skip to content

Commit

Permalink
add image in psana2 for rixsccd
Browse files Browse the repository at this point in the history
  • Loading branch information
philiph-slac committed Nov 21, 2024
1 parent 86f325d commit 6a63a90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions calibrationSuite/psana2Base.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ def getCalibData(self, evt):
frames = self.det.raw.calib(evt)
return frames

def getImageData(self, evt):
frames = self.det.raw.image(evt)
return frames

def getImage(self, evt, data=None):
return self.det.raw.image(evt, data)

Expand Down
2 changes: 2 additions & 0 deletions suite_scripts/CalcNoiseAndMean.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
else:
if bss.detObj and bss.detObj == "calib":
frames = bss.getCalibData(evt)
elif bss.detObj and bss.detObj == "image":
frames = bss.getImageData(evt)
else:
frames = bss.getRawData(evt, gainBitsMasked=True)
if frames is not None and bss.special is not None and "parity" in bss.special:
Expand Down

0 comments on commit 6a63a90

Please sign in to comment.