Commits

Cameron Hummels committed 1f8602e

Correcting syntax thanks to mjturk.

  • Participants
  • Parent commits 4c03af8

Comments (0)

Files changed (1)

yt/analysis_modules/halo_merger_tree/enzofof_merger_tree.py

         r"""Prints the merger tree to stdout.
         """
         for lvl in sorted(self.levels, reverse=True):
-            if lvl not in self.redshifts.keys(): continue
+            if lvl not in self.redshifts: continue
             print "========== Cycle %5.5d (z=%f) ==========" % \
                   (lvl, self.redshifts[lvl])
             for br in self.levels[lvl]:
         fraction[0] = 1.
 
         for i, lvl in enumerate(sorted(self.levels, reverse=True)):
-            if lvl not in self.redshifts.keys(): continue
+            if lvl not in self.redshifts: continue
             print "========== Cycle %5.5d (z=%f) ==========" % \
                   (lvl, self.redshifts[lvl])
             cycle[i] = lvl