(cls, filename)
Return reader instance that can be used to read the file

        Parameters
        ----------
        filename : str

        Returns
        -------
        FileFormat
Return reader instance that can be used to read the file
Return reader instance that can be used to read the file
def get_reader(cls, filename):
        """Return reader instance that can be used to read the file

        Parameters
        ----------
        filename : str

        Returns
        -------
        FileFormat
        """
        for ext, reader in cls.readers.items():
            # Skip ambiguous, invalid compression-only extensions added on OSX
            if ext in Compression.all:
                continue
            if fnmatch(path.basename(filename), '*' + ext):
                return reader(filename)

        raise IOError('No readers for file "{}"'.format(filename))
def get_reader ( cls , filename ) : for ext , reader in cls . readers . items ( ) : # Skip ambiguous, invalid compression-only extensions added on OSX if ext in Compression . all : continue if fnmatch ( path . basename ( filename ) , '*' + ext ) : return reader ( filename ) raise IOError ( 'No readers for file "{}"' . format ( filename ) )