def load_metrics(self):
        try:
            with open(self.config.filename_metrics, 'r') as f:
                metrics = json.load(f)
            # workaround for graphite bug where metrics can have leading dots
            # has been fixed (https://github.com/graphite-project/graphite-web/pull/293)
            # but older graphite versions still do it
            if len(metrics) and metrics[0][0] == '.':
                metrics = [m.lstrip('.') for m in metrics]
            return metrics
        except IOError, e:
            raise MetricsError("Can't load metrics file", e)
        except __HOLE__, e:
            raise MetricsError("Can't parse metrics file", e)
dataset/ETHPy150Open vimeo/graph-explorer/graph_explorer/backend.py/Backend.load_metrics