INNER CODE UNIT · Python
_open_file
pymzml/pymzML · pymzml/run.py:227
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"],
build_index_from_scratch=build_index_from_scratch,
index_regex=self.index_regex,
)