コード例 #1
0
 def _summary(self):
     """Print a summary of the DLE transformations."""
     row = "%s [elapsed: %.2f]"
     out = " >>\n     ".join(
         row % ("".join(filter(lambda c: not c.isdigit(), k[1:])), v)
         for k, v in self.timings.items())
     elapsed = sum(self.timings.values())
     dle("%s\n     [Total elapsed: %.2f s]" % (out, elapsed))
コード例 #2
0
ファイル: rewriters.py プロジェクト: opesci/devito
 def _summary(self):
     """Print a summary of the DLE transformations."""
     row = "%s [elapsed: %.2f]"
     out = " >>\n     ".join(row % ("".join(filter(lambda c: not c.isdigit(), k[1:])),
                                    v)
                             for k, v in self.timings.items())
     elapsed = sum(self.timings.values())
     dle("%s\n     [Total elapsed: %.2f s]" % (out, elapsed))