pydevices/HtsDevices/acq400_hapi/acq400.py
def read_channels(self, channels=(), nsam=0):
        """read all channels post shot data.

        Returns:
            chx (list) of np arrays.
        """


        if channels == ():
            channels = list(range(1, self.nchan()+1))
        elif type(channels) == int:
            channels = (channels,)

    #      print("channels {}".format(channels))

        chx = []
        for ch in channels:
            if self.trace:
                print("%s CH%02d start.." % (self.uut, ch))
                start = timeit.default_timer()

            chx.append(self.read_chan(ch, nsam))

            if self.trace:
                tt = timeit.default_timer() - start
                print("%s CH%02d complete.. %.3f s %.2f MB/s" %
                      (self.uut, ch, tt, len(chx[-1])*2/1000000/tt))

        return chx
read all channels post shot data.

        Returns:
            chx (list) of np arrays.
        
read all channels post shot data.
read all channels post shot data .
def read_channels(self, channels=(), nsam=0):
        if channels == ():
            channels = list(range(1, self.nchan()+1))
        elif type(channels) == int:
            channels = (channels,)
        chx = []
        for ch in channels:
            if self.trace:
                print("%s CH%02d start.." % (self.uut, ch))
                start = timeit.default_timer()
            chx.append(self.read_chan(ch, nsam))
            if self.trace:
                tt = timeit.default_timer() - start
                print("%s CH%02d complete.. %.3f s %.2f MB/s" %
                      (self.uut, ch, tt, len(chx[-1])*2/1000000/tt))
        return chx
def read_channels ( self , channels = ( ) , nsam = 0 ) : if channels == ( ) : channels = list ( range ( 1 , self . nchan ( ) + 1 ) ) elif type ( channels ) == int : channels = ( channels , ) chx = [ ] for ch in channels : if self . trace : print ( "%s CH%02d start.." % ( self . uut , ch ) ) start = timeit . default_timer ( ) chx . append ( self . read_chan ( ch , nsam ) ) if self . trace : tt = timeit . default_timer ( ) - start print ( "%s CH%02d complete.. %.3f s %.2f MB/s" % ( self . uut , ch , tt , len ( chx [ - 1 ] ) * 2 / 1000000 / tt ) ) return chx
read all channels post shot data.
read all channels post shot data .
"""read all channels post shot data.

        Returns:
            chx (list) of np arrays.
        """ #      print("channels {}".format(channels))
chx (list) of np arrays.
chx ( list ) of np arrays .
self
channels
nsam