[yt-svn] commit/yt: 3 new changesets
Bitbucket
commits-noreply at bitbucket.org
Thu Jan 10 06:49:05 PST 2013
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/7bdcadd9aa4c/
changeset: 7bdcadd9aa4c
branch: yt
user: ngoldbaum
date: 2013-01-10 15:23:51
summary: Fixing projected units. Thanks to Christian Karch for pointing this out.
affected #: 1 file
diff -r 7044e4e1dcce838c1c0423396bd20060a3fd6b52 -r 7bdcadd9aa4c0e5106fd31e42c16014e3ef1df3e yt/visualization/fixed_resolution.py
--- a/yt/visualization/fixed_resolution.py
+++ b/yt/visualization/fixed_resolution.py
@@ -178,9 +178,17 @@
info['label'] = r'$\rm{'+info['label']+r'}$'
if info['units'] is None or info['units'] == '':
pass
- else:
- info['label'] += r'$\/\/('+info['units']+r')$'
-
+ elif self.data_source._type_name in ("slice", "cutting"):
+ units = info['units']
+ elif self.data_source._type_name == "proj":
+ if (self.data_source.weight_field is not None or
+ self.data_source.proj_style == "mip"):
+ units = info['units']
+ else:
+ units = info['projected_units']
+
+ info['label'] += r'$\/\/('+units+r')$'
+
return info
def convert_to_pixel(self, coords):
https://bitbucket.org/yt_analysis/yt/commits/7f5e32da1d89/
changeset: 7f5e32da1d89
branch: yt
user: ngoldbaum
date: 2013-01-10 15:24:31
summary: Adding yt_updater.log to .hgignore.
affected #: 1 file
diff -r 7bdcadd9aa4c0e5106fd31e42c16014e3ef1df3e -r 7f5e32da1d894c63f7486e895ff7db1d817858b3 .hgignore
--- a/.hgignore
+++ b/.hgignore
@@ -4,6 +4,7 @@
freetype.cfg
hdf5.cfg
png.cfg
+yt_updater.log
yt/frontends/ramses/_ramses_reader.cpp
yt/utilities/amr_utils.c
yt/utilities/kdtree/forthonf2c.h
https://bitbucket.org/yt_analysis/yt/commits/c5e0f2a0ac7a/
changeset: c5e0f2a0ac7a
branch: yt
user: ngoldbaum
date: 2013-01-10 15:42:00
summary: Fixing a corner case that will break FRBs of unitless fields.
affected #: 1 file
diff -r 7f5e32da1d894c63f7486e895ff7db1d817858b3 -r c5e0f2a0ac7a143690f17f9cf48e2ebc41c683c8 yt/visualization/fixed_resolution.py
--- a/yt/visualization/fixed_resolution.py
+++ b/yt/visualization/fixed_resolution.py
@@ -176,9 +176,8 @@
elif info['label'].find('$') == -1:
info['label'] = info['label'].replace(' ','\/')
info['label'] = r'$\rm{'+info['label']+r'}$'
- if info['units'] is None or info['units'] == '':
- pass
- elif self.data_source._type_name in ("slice", "cutting"):
+
+ if self.data_source._type_name in ("slice", "cutting"):
units = info['units']
elif self.data_source._type_name == "proj":
if (self.data_source.weight_field is not None or
@@ -186,8 +185,12 @@
units = info['units']
else:
units = info['projected_units']
-
- info['label'] += r'$\/\/('+units+r')$'
+
+ if units is None or units == '':
+ pass
+ else:
+ info['label'] += r'$\/\/('+units+r')$'
+
return info
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