(self, filename)
return stats
Read contents of given file.
Read contents of given file.
Read contents of given file .
def _read_file(self, filename):
        """
        Read contents of given file.
        """
        try:
            with open(filename, "r") as fhandle:
                stats = float(fhandle.readline().rstrip("\n"))
        except Exception:
            stats = None

        return stats
def _read_file ( self , filename ) : try : with open ( filename , "r" ) as fhandle : stats = float ( fhandle . readline ( ) . rstrip ( "\n" ) ) except Exception : stats = None return stats