[yt-svn] commit/yt: jzuhone: Merged in ngoldbaum/yt (pull request #1597)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri May 29 11:56:40 PDT 2015


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/718444346962/
Changeset:   718444346962
Branch:      yt
User:        jzuhone
Date:        2015-05-29 18:56:31+00:00
Summary:     Merged in ngoldbaum/yt (pull request #1597)

Delegate setting enzo code unit symbols to Dataset base class
Affected #:  1 file

diff -r 5519ddabd1cd4c2294447469339ae869dab46c96 -r 718444346962f551ca51fec7a6ef877b6badb473 yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -890,7 +890,7 @@
         elif self.dimensionality == 2:
             self._setup_2d()
 
-    def set_code_units(self):
+    def _set_code_unit_attributes(self):
         if self.cosmological_simulation:
             k = self.cosmology_get_units()
             # Now some CGS values
@@ -928,17 +928,6 @@
         magnetic_unit = np.float64(magnetic_unit.in_cgs())
         self.magnetic_unit = self.quan(magnetic_unit, "gauss")
 
-        self._override_code_units()
-
-        self.unit_registry.modify("code_magnetic", self.magnetic_unit)
-        self.unit_registry.modify("code_length", self.length_unit)
-        self.unit_registry.modify("code_mass", self.mass_unit)
-        self.unit_registry.modify("code_time", self.time_unit)
-        self.unit_registry.modify("code_velocity", self.velocity_unit)
-        DW = self.arr(self.domain_right_edge - self.domain_left_edge, "code_length")
-        self.unit_registry.add("unitary", float(DW.max() * DW.units.base_value),
-                               DW.units.dimensions)
-
     def cosmology_get_units(self):
         """
         Return an Enzo-fortran style dictionary of units to feed into custom

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list