[yt-svn] commit/yt: MatthewTurk: Adding a comoving units conversion to FLASH
Bitbucket
commits-noreply at bitbucket.org
Tue Nov 13 06:15:12 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/3b328da941be/
changeset: 3b328da941be
branch: yt
user: MatthewTurk
date: 2012-11-13 15:14:52
summary: Adding a comoving units conversion to FLASH
affected #: 1 file
diff -r d84dc871dfc9657a2b2f461cb7a6e0bad7508386 -r 3b328da941be8637737b0405e57d62227b77be6d yt/frontends/flash/data_structures.py
--- a/yt/frontends/flash/data_structures.py
+++ b/yt/frontends/flash/data_structures.py
@@ -274,6 +274,7 @@
self.conversion_factors["Time"] = 1.0
for unit in mpc_conversion.keys():
self.units[unit] = mpc_conversion[unit] / mpc_conversion["cm"]
+ self.units[unit+"cm"] = self.units[unit]
self.units[unit] /= (1.0+self.current_redshift)
def _setup_cgs_units(self):
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