ocrd_cis/align/cli.py
def zip_input_files(self, ifgs):
        """Zip files of the given input file groups"""
        files = list()
        for ifg in ifgs:
            self.log.info("input file group: %s", ifg)
            ifiles = sorted(
                self.workspace.mets.find_files(fileGrp=ifg),
                key=lambda ifile: ifile.url)
            for i in ifiles:
                self.log.debug("sorted file: %s %s",
                              os.path.basename(i.url), i.ID)
            ifiles = [FileAlignment(self.workspace, x, ifg) for x in ifiles]
            files.append(ifiles)
        return zip(*files)
Zip files of the given input file groups
Zip files of the given input file groups
Zip files of the given input file groups
def zip_input_files(self, ifgs):
        files = list()
        for ifg in ifgs:
            self.log.info("input file group: %s", ifg)
            ifiles = sorted(
                self.workspace.mets.find_files(fileGrp=ifg),
                key=lambda ifile: ifile.url)
            for i in ifiles:
                self.log.debug("sorted file: %s %s",
                              os.path.basename(i.url), i.ID)
            ifiles = [FileAlignment(self.workspace, x, ifg) for x in ifiles]
            files.append(ifiles)
        return zip(*files)
def zip_input_files ( self , ifgs ) : files = list ( ) for ifg in ifgs : self . log . info ( "input file group: %s" , ifg ) ifiles = sorted ( self . workspace . mets . find_files ( fileGrp = ifg ) , key = lambda ifile : ifile . url ) for i in ifiles : self . log . debug ( "sorted file: %s %s" , os . path . basename ( i . url ) , i . ID ) ifiles = [ FileAlignment ( self . workspace , x , ifg ) for x in ifiles ] files . append ( ifiles ) return zip ( * files )
Zip files of the given input file groups
Zip files of the given input file groups
"""Zip files of the given input file groups"""
self
ifgs