[yt-svn] commit/yt-3.0: sleitner: correcting cm units in ramses and artio
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Sep 6 04:40:33 PDT 2013
1 new commit in yt-3.0:
https://bitbucket.org/yt_analysis/yt-3.0/commits/9e43b18b736d/
Changeset: 9e43b18b736d
Branch: yt-3.0
User: sleitner
Date: 2013-09-06 04:03:27
Summary: correcting cm units in ramses and artio
Affected #: 2 files
diff -r 557607fcc8dd2175d821a8adb51d663b284d2eff -r 9e43b18b736d1b738249c93598041b15a7266914 yt/frontends/artio/data_structures.py
--- a/yt/frontends/artio/data_structures.py
+++ b/yt/frontends/artio/data_structures.py
@@ -452,10 +452,10 @@
self.units["%sh" % unit] = self.units[unit] * \
self.hubble_constant
self.units["%shcm" % unit] = \
- (self.units["%sh" % unit] /
+ (self.units["%sh" % unit] *
(1 + self.current_redshift))
self.units["%scm" % unit] = \
- self.units[unit] / (1 + self.current_redshift)
+ self.units[unit] * (1 + self.current_redshift)
for unit in sec_conversion.keys():
self.time_units[unit] = self.parameters['unit_t']\
diff -r 557607fcc8dd2175d821a8adb51d663b284d2eff -r 9e43b18b736d1b738249c93598041b15a7266914 yt/frontends/ramses/data_structures.py
--- a/yt/frontends/ramses/data_structures.py
+++ b/yt/frontends/ramses/data_structures.py
@@ -411,9 +411,9 @@
for unit in mpc_conversion.keys():
self.units[unit] = unit_l * mpc_conversion[unit] / mpc_conversion["cm"]
self.units['%sh' % unit] = self.units[unit] * self.hubble_constant
- self.units['%scm' % unit] = (self.units[unit] /
+ self.units['%scm' % unit] = (self.units[unit] *
(1 + self.current_redshift))
- self.units['%shcm' % unit] = (self.units['%sh' % unit] /
+ self.units['%shcm' % unit] = (self.units['%sh' % unit] *
(1 + self.current_redshift))
for unit in sec_conversion.keys():
self.time_units[unit] = self.parameters['unit_t'] / sec_conversion[unit]
Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/
--
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