SciFiReaders.readers.microscopy.em.tem.nion_reader.parse_zip

SciFiReaders.readers.microscopy.em.tem.nion_reader.parse_zip(fp)[source]

Parse the zip file headers at fp :param fp: the file pointer from which to parse the zip file :return: A tuple of local files, directory headers, and end of central directory The local files are dictionary where the keys are the local file offset and the values are each a tuple consisting of the name, data position, data length, and crc32. The directory headers are a dictionary where the keys are the names of the files and the values are a tuple consisting of the directory header position, and the associated local file position. The end of central directory is a tuple consisting of the location of the end of central directory header and the location of the first directory header. This method will seek to location 0 of fp and leave fp at end of file.

This function is copied from nionswift/nion/swift/model/NDataHandler.py