[Yt-svn] yt: Adding translation table for RAMSES fields
hg at spacepope.org
hg at spacepope.org
Tue Aug 10 15:53:35 PDT 2010
hg Repository: yt
details: yt/rev/f93a5b941eba
changeset: 1933:f93a5b941eba
user: Matthew Turk <matthewturk at gmail.com>
date:
Tue Aug 10 15:53:31 2010 -0700
description:
Adding translation table for RAMSES fields
diffstat:
yt/lagos/RAMSESFields.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r f4ac807130c6 -r f93a5b941eba yt/lagos/RAMSESFields.py
--- a/yt/lagos/RAMSESFields.py Tue Aug 10 15:41:46 2010 -0700
+++ b/yt/lagos/RAMSESFields.py Tue Aug 10 15:53:31 2010 -0700
@@ -33,6 +33,11 @@
add_field = add_ramses_field
translation_dict = {"Density":"density",
+ "x-velocity":"velocity_x",
+ "y-velocity":"velocity_y",
+ "z-velocity":"velocity_z",
+ "Pressure":"pressure",
+ "Metallicity":"metallicity",
}
def _generate_translation(mine, theirs):
More information about the yt-svn
mailing list