(self, as_numpy=True)
Load from zip file.
Load from zip file.
Load from zip file .
def _load(self, as_numpy=True):
        """Load from zip file."""
        with CustomOpen(self.path, 'rb') as f:
            try:
                array = f.read('maps/{}.npy'.format(self.index))
            except KeyError:
                array = f.read(self.index)
        if as_numpy:
            return load(array)
        else:
            return array
def _load ( self , as_numpy = True ) : with CustomOpen ( self . path , 'rb' ) as f : try : array = f . read ( 'maps/{}.npy' . format ( self . index ) ) except KeyError : array = f . read ( self . index ) if as_numpy : return load ( array ) else : return array