1. Sam Skillman
  2. yt

Commits

Matthew Turk  committed 5b6b482 Merge

Merged in ngoldbaum/yt (pull request #484)

Making it possible to parse enzo parameters that contain '='

  • Participants
  • Parent commits dd62805, ba9d67f
  • Branches yt

Comments (0)

Files changed (1)

File yt/frontends/enzo/data_structures.py

View file
  • Ignore whitespace
         data_label_factors = {}
         for line in (l.strip() for l in lines):
             if len(line) < 2: continue
-            param, vals = (i.strip() for i in line.split("="))
+            param, vals = (i.strip() for i in line.split("=",1))
             # First we try to decipher what type of value it is.
             vals = vals.split()
             # Special case approaching.