[yt-svn] commit/yt: MatthewTurk: Merged in rthompson/my_yt (pull request #1709)

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


1 new commit in yt:

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