pybit/py2/chain.py
def read_all(self):
        """
        Read all blocks in .dat
        """
        # If verb is low, use tqdm
        if self.verb <= 1:
            # Note if tqdm isn't available, it'll use the placeholder
            # function which does nothing
            tqdm_runner = tqdm
        else:
            tqdm_runner = tqdm_off

        for fi in tqdm_runner(range(self.datStart,
                                    self.datStart+self.datn)):
            d = self.readDat(datn=fi)
            d.read_all()

            # For now:
            # Save dat contents to Chain (dats ordered, blocks not)
            print d
            self.dats[self.datni] = d

            # TODO:
            #   - dat contents here need to be unpacked and ordered

        Read all blocks in .dat
        
Read all blocks in .dat
Read all blocks in . dat
def read_all(self):
        if self.verb <= 1:
            tqdm_runner = tqdm
        else:
            tqdm_runner = tqdm_off
        for fi in tqdm_runner(range(self.datStart,
                                    self.datStart+self.datn)):
            d = self.readDat(datn=fi)
            d.read_all()
            print d
            self.dats[self.datni] = d
def read_all ( self ) : if self . verb <= 1 : tqdm_runner = tqdm else : tqdm_runner = tqdm_off for fi in tqdm_runner ( range ( self . datStart , self . datStart + self . datn ) ) : d = self . readDat ( datn = fi ) d . read_all ( ) print d self . dats [ self . datni ] = d
Read all blocks in .dat
Read all blocks in . dat
"""
        Read all blocks in .dat
        """ # If verb is low, use tqdm # Note if tqdm isn't available, it'll use the placeholder # function which does nothing # For now: # Save dat contents to Chain (dats ordered, blocks not) # TODO: #   - dat contents here need to be unpacked and ordered
self