[yt-svn] commit/yt: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Wed Feb 20 09:36:18 PST 2013
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/41aa542420be/
changeset: 41aa542420be
branch: yt
user: brittonsmith
date: 2013-02-20 17:18:00
summary: Fixing small bug in using to_frb with overlap_proj and without
specifiying width units.
affected #: 2 files
diff -r 09a0fd75818bc91ba4166fa3a3db5cabd27f9c0a -r 41aa542420be1ac1e3c7248753471c7f4d4b0ad8 yt/data_objects/data_containers.py
--- a/yt/data_objects/data_containers.py
+++ b/yt/data_objects/data_containers.py
@@ -2068,6 +2068,7 @@
source=None, node_name = None, field_cuts = None,
preload_style='level', serialize=True,**kwargs):
AMR2DData.__init__(self, axis, field, pf, node_name = None, **kwargs)
+ self.proj_style = "integrate"
self.weight_field = weight_field
self._field_cuts = field_cuts
self.serialize = serialize
diff -r 09a0fd75818bc91ba4166fa3a3db5cabd27f9c0a -r 41aa542420be1ac1e3c7248753471c7f4d4b0ad8 yt/visualization/fixed_resolution.py
--- a/yt/visualization/fixed_resolution.py
+++ b/yt/visualization/fixed_resolution.py
@@ -179,7 +179,7 @@
if self.data_source._type_name in ("slice", "cutting"):
units = info['units']
- elif self.data_source._type_name == "proj":
+ elif self.data_source._type_name in ("proj", "overlap_proj"):
if (self.data_source.weight_field is not None or
self.data_source.proj_style == "mip"):
units = info['units']
https://bitbucket.org/yt_analysis/yt/commits/a381ca6cefef/
changeset: a381ca6cefef
branch: yt
user: samskillman
date: 2013-02-20 18:35:08
summary: setting units to None before trying to figure them out, addressing an issue raised in irc.
affected #: 1 file
diff -r 41aa542420be1ac1e3c7248753471c7f4d4b0ad8 -r a381ca6cefefc3d987fe725b4ce1a0884687a4f4 yt/visualization/fixed_resolution.py
--- a/yt/visualization/fixed_resolution.py
+++ b/yt/visualization/fixed_resolution.py
@@ -177,6 +177,8 @@
info['label'] = info['label'].replace(' ','\/')
info['label'] = r'$\rm{'+info['label']+r'}$'
+ # Try to determine the units of the data
+ units = None
if self.data_source._type_name in ("slice", "cutting"):
units = info['units']
elif self.data_source._type_name in ("proj", "overlap_proj"):
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