Commits

Nathan Goldbaum committed f9d7d69

Need to use ensure_list otherwise 1D sims will barf.

  • Participants
  • Parent commits 4be7647

Comments (0)

Files changed (1)

File yt/frontends/enzo/data_structures.py

         for k, v in data_label_factors.items():
             self.conversion_factors[data_labels[k]] = v
         self.refine_by = self.parameters["RefineBy"]
-        self.periodicity = tuple(self.parameters["LeftFaceBoundaryCondition"] == 3)
+        self.periodicity = tuple(ensure_list(self.parameters["LeftFaceBoundaryCondition"] == 3))
         self.dimensionality = self.parameters["TopGridRank"]
         if self.dimensionality > 1:
             self.domain_dimensions = self.parameters["TopGridDimensions"]