INNER CODE UNIT · Python
file_class
pymzml/pymzML · pymzml/run.py:223
def file_class(self):
"""Return file object in use."""
return type(self.info["file_object"].file_handler)
def _open_file(self, path_or_file, build_index_from_scratch=False):
"""
Open the path using the FileInterface class as a wrapper.
Arguments:
path (str): path to the file to parse
Returns:
(FileInterface): Wrapper class for compressed and uncompressed
mzml files
"""
return FileInterface(
path_or_file,
self.info["encoding"],