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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Aug 20 09:21:05 PDT 2015


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/cf4249963b01/
Changeset:   cf4249963b01
Branch:      yt
User:        rthompson
Date:        2015-08-19 20:06:01+00:00
Summary:     adding scale_factor attribute to cosmological simulation datasets.
Affected #:  1 file

diff -r cfc98fddd9d791464330adf166d4229749dab22c -r cf4249963b01c22e806b48d072e539c0c0d14365 yt/data_objects/static_output.py
--- a/yt/data_objects/static_output.py
+++ b/yt/data_objects/static_output.py
@@ -713,6 +713,7 @@
                               unit_registry=self.unit_registry))
             setattr(self, "critical_density",
                     self.cosmology.critical_density(self.current_redshift))
+            self.scale_factor = 1.0 / (1.0 + self.current_redshift)
 
     def get_unit_from_registry(self, unit_str):
         """


https://bitbucket.org/yt_analysis/yt/commits/cc82a477e7c8/
Changeset:   cc82a477e7c8
Branch:      yt
User:        MatthewTurk
Date:        2015-08-20 16:20:56+00:00
Summary:     Merged in rthompson/my_yt (pull request #1709)

adding scale_factor attribute to cosmological simulation datasets.
Affected #:  1 file

diff -r 7a9a879efb3d0f6a32c5944e35f38db1f50a7a63 -r cc82a477e7c8f8427f2b34a1db14abde4ecca5ea yt/data_objects/static_output.py
--- a/yt/data_objects/static_output.py
+++ b/yt/data_objects/static_output.py
@@ -713,6 +713,7 @@
                               unit_registry=self.unit_registry))
             setattr(self, "critical_density",
                     self.cosmology.critical_density(self.current_redshift))
+            self.scale_factor = 1.0 / (1.0 + self.current_redshift)
 
     def get_unit_from_registry(self, unit_str):
         """

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