[Yt-svn] yt-commit r1335 - trunk/yt/lagos
skillman at wrangler.dreamhost.com
skillman at wrangler.dreamhost.com
Tue Jun 16 08:30:34 PDT 2009
Author: skillman
Date: Tue Jun 16 08:30:34 2009
New Revision: 1335
URL: http://yt.spacepope.org/changeset/1335
Log:
Updating default density fields to include PreShock_Density to deal with units correctly.
Modified:
trunk/yt/lagos/EnzoFields.py
Modified: trunk/yt/lagos/EnzoFields.py
==============================================================================
--- trunk/yt/lagos/EnzoFields.py (original)
+++ trunk/yt/lagos/EnzoFields.py Tue Jun 16 08:30:34 2009
@@ -38,7 +38,7 @@
_speciesList = ["HI","HII","Electron",
"HeI","HeII","HeIII",
"H2I","H2II","HM",
- "DI","DII","HDI","Metal"]
+ "DI","DII","HDI","Metal","PreShock"]
def _SpeciesFraction(field, data):
sp = field.name.split("_")[0] + "_Density"
return data[sp]/data["Density"]
More information about the yt-svn
mailing list