[Yt-svn] commit/yt: MatthewTurk: Fixing RAMSES cosmological simulation parameter
Bitbucket
commits-noreply at bitbucket.org
Fri Aug 5 06:49:38 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/c37c02ff0e7e/
changeset: c37c02ff0e7e
branch: stable
user: MatthewTurk
date: 2011-08-05 15:49:25
summary: Fixing RAMSES cosmological simulation parameter
affected #: 1 file (340 bytes)
--- a/yt/frontends/ramses/data_structures.py Thu Aug 04 16:44:20 2011 -0400
+++ b/yt/frontends/ramses/data_structures.py Fri Aug 05 09:49:25 2011 -0400
@@ -376,6 +376,13 @@
* rheader['boxlen']
self.domain_left_edge = na.zeros(3, dtype='float64')
self.domain_dimensions = na.ones(3, dtype='int32') * 2
+ # This is likely not true, but I am not sure how to otherwise
+ # distinguish them.
+ self.cosmological_simulation = 1
+ self.current_redshift = 1.0 / (1.0 + rheader["aexp"])
+ self.omega_lambda = rheader["omega_l"]
+ self.omega_matter = rheader["omega_m"]
+ self.hubble_constant = rheader["H0"]
@classmethod
def _is_valid(self, *args, **kwargs):
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