From 3da210a792f4e8f0d00ddb740f7f837d2d66bd7d Mon Sep 17 00:00:00 2001 From: Aaron Parsons Date: Wed, 8 May 2024 13:32:42 -0700 Subject: [PATCH] Put the chip argument back in to SnapADC.rampTest (as it had been in HERA) --- src/snapadc.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/snapadc.py b/src/snapadc.py index a48b769..ff65bac 100644 --- a/src/snapadc.py +++ b/src/snapadc.py @@ -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) @@ -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: