Skip to content

Commit

Permalink
Put the chip argument back in to SnapADC.rampTest (as it had been in …
Browse files Browse the repository at this point in the history
…HERA)
  • Loading branch information
HERA-Observer committed May 8, 2024
1 parent be86f40 commit 3da210a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/snapadc.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,8 +962,9 @@ def isFrameClockAligned(self):
logger.error('Frame clock NOT aligned.\n{0}'.format(str(errs)))
return False

def rampTest(self, nchecks=300, retry=False):
chips = self.adcList
def rampTest(self, chips=None, nchecks=300, retry=False):
if chips is None:
chips = self.adcList
self.logger.debug('Ramp test on ADCs: %s' % str(chips))
failed_chips = {}
self.setDemux(numChannel=1)
Expand All @@ -972,7 +973,7 @@ def rampTest(self, nchecks=300, retry=False):
self.adc.test("en_ramp")
for cnt in range(nchecks):
self.snapshot()
for chip,d in self.readRAM(signed=False).items():
for chip,d in self.readRAM(chips, signed=False).items():
ans = (predicted + d[0,0]) % 256
failed_lanes = np.sum(d != ans, axis=0)
if np.any(failed_lanes) > 0:
Expand Down

0 comments on commit 3da210a

Please sign in to comment.