Commits

Nathan Goldbaum committed bb66dfc

Setting periodicity in the orion frontend.
Minor stylistic modifications to the nyx and enzo frontends.

Comments (0)

Files changed (3)

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(ensure_list(self.parameters["LeftFaceBoundaryCondition"] == 3))
+        self.periodicity = ensure_tuple(self.parameters["LeftFaceBoundaryCondition"] == 3))
         self.dimensionality = self.parameters["TopGridRank"]
         if self.dimensionality > 1:
             self.domain_dimensions = self.parameters["TopGridDimensions"]

yt/frontends/nyx/data_structures.py

             elif param.startswith("particles.write_in_plotfile"):
                 self.use_particles = boxlib_bool_to_int(vals[0])
             elif param.startswith("nyx.lo_bc"):
-                self.periodicity = tuple([i == 0 for i in vals])
+                self.periodicity = ensure_tuple([i == 0 for i in vals])
 
         # aliases we need
         self.parameters["TopGridRank"] = len(self.parameters["TopGridDimensions"])

yt/frontends/orion/data_structures.py

             elif param.startswith("geometry.prob_lo"):
                 self.domain_left_edge = \
                     np.array([float(i) for i in vals.split()])
+            elif param.startswith("Prob.lo_bc"):
+                self.periodicity = ensure_tuple([i == 0 for i in vals])
 
         self.parameters["TopGridRank"] = len(self.parameters["TopGridDimensions"])
         self.dimensionality = self.parameters["TopGridRank"]