@staticmethod<EOL><INDENT>@functools.lru_cache(maxsize=<NUM_LIT:32>)<EOL>def _index_files(path):<DEDENT>
with zipfile.ZipFile(path) as zf:<EOL><INDENT>names = sorted(zf.namelist())<EOL>names = [nn for nn in names if nn.endswith("<STR_LIT>")]<EOL>phasefiles = []<EOL>for name in names:<EOL><INDENT>with zf.open(name) as pt:<EOL><INDENT>fd = io.BytesIO(pt.read())<EOL>if SingleTifHolo.verify(fd):<EOL><INDENT>phasefiles.append(name)<EOL><DEDENT><DEDENT><DEDENT>return phasefiles<EOL><DEDENT>
Search zip file for tif files