[yt-svn] commit/yt: 2 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Feb 27 10:10:13 PST 2013


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/985b0068a9d7/
changeset:   985b0068a9d7
branch:      yt
user:        samskillman
date:        2013-02-27 18:26:56
summary:     _set_units needs to be called after correcting for the incorrectly guessed left and right edges in parse_parameter_file.
affected #:  1 file

diff -r db1d8020d9fb8484147d65366968b012db4d0b50 -r 985b0068a9d79b62951926052187cfb511a873c4 yt/frontends/athena/data_structures.py
--- a/yt/frontends/athena/data_structures.py
+++ b/yt/frontends/athena/data_structures.py
@@ -289,6 +289,11 @@
                      self.parameter_file.domain_right_edge)
         self.parameter_file.domain_dimensions = \
                 np.round(self.parameter_file.domain_width/gdds[0]).astype('int')
+
+        # Need to reset the units in the parameter file based on the correct
+        # domain left/right/dimensions.
+        self.parameter_file._set_units()
+
         if self.parameter_file.dimensionality <= 2 :
             self.parameter_file.domain_dimensions[2] = np.int(1)
         if self.parameter_file.dimensionality == 1 :


https://bitbucket.org/yt_analysis/yt/commits/d152218599e2/
changeset:   d152218599e2
branch:      yt
user:        MatthewTurk
date:        2013-02-27 19:10:09
summary:     Merged in samskillman/yt (pull request #448)

Bugfix for units setup in Athena
affected #:  1 file

diff -r 2d62796bc721a9d299b2f0e5f2ad2ec98f3c99d6 -r d152218599e22c48bc8b09a8a80d369e89ce15cf yt/frontends/athena/data_structures.py
--- a/yt/frontends/athena/data_structures.py
+++ b/yt/frontends/athena/data_structures.py
@@ -289,6 +289,11 @@
                      self.parameter_file.domain_right_edge)
         self.parameter_file.domain_dimensions = \
                 np.round(self.parameter_file.domain_width/gdds[0]).astype('int')
+
+        # Need to reset the units in the parameter file based on the correct
+        # domain left/right/dimensions.
+        self.parameter_file._set_units()
+
         if self.parameter_file.dimensionality <= 2 :
             self.parameter_file.domain_dimensions[2] = np.int(1)
         if self.parameter_file.dimensionality == 1 :

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