[yt-svn] commit/yt-3.0: 2 new changesets

Bitbucket commits-noreply at bitbucket.org
Fri Aug 17 14:06:46 PDT 2012


2 new commits in yt-3.0:


https://bitbucket.org/yt_analysis/yt-3.0/changeset/e19f875f8280/
changeset:   e19f875f8280
branch:      yt-3.0
user:        MatthewTurk
date:        2012-08-17 21:47:39
summary:     Updating Reason to work with RAMSES and 3.0 changes.
affected #:  4 files

diff -r 1d476c1af29f294821ace48d0488425fdfce7e59 -r e19f875f8280a58d99b59b3f70e752e186ad2f56 yt/data_objects/construction_data_containers.py
--- a/yt/data_objects/construction_data_containers.py
+++ b/yt/data_objects/construction_data_containers.py
@@ -353,7 +353,7 @@
     _top_node = "/Projections"
     _key_fields = YTSelectionContainer2D._key_fields + ['weight_field']
     _type_name = "overlap_proj"
-    _con_args = ('axis', 'field', 'weight_field')
+    _con_args = ('axis', 'weight_field')
     def __init__(self, field, axis, weight_field = None,
                  max_level = None, center = None, pf = None,
                  source=None, node_name = None, field_cuts = None,


diff -r 1d476c1af29f294821ace48d0488425fdfce7e59 -r e19f875f8280a58d99b59b3f70e752e186ad2f56 yt/frontends/ramses/data_structures.py
--- a/yt/frontends/ramses/data_structures.py
+++ b/yt/frontends/ramses/data_structures.py
@@ -343,10 +343,10 @@
 
     def _detect_fields(self):
         # TODO: Add additional fields
-        self.fluid_field_list = ( "Density", "x-velocity", "y-velocity",
-	                        "z-velocity", "Pressure", "Metallicity" )
-        self.particle_field_list = tuple(
-            self.domains[0].particle_field_offsets.keys())
+        self.fluid_field_list = [ "Density", "x-velocity", "y-velocity",
+	                        "z-velocity", "Pressure", "Metallicity" ]
+        self.particle_field_list = \
+            self.domains[0].particle_field_offsets.keys()
         self.field_list = self.fluid_field_list + self.particle_field_list
     
     def _setup_classes(self):


diff -r 1d476c1af29f294821ace48d0488425fdfce7e59 -r e19f875f8280a58d99b59b3f70e752e186ad2f56 yt/gui/reason/widget_store.py
--- a/yt/gui/reason/widget_store.py
+++ b/yt/gui/reason/widget_store.py
@@ -73,7 +73,7 @@
             center = na.array(center)
         axis = inv_axis_names[axis.lower()]
         coord = center[axis]
-        sl = pf.h.slice(axis, coord, center = center, periodic = True)
+        sl = pf.h.slice(axis, coord, center = center)
         xax, yax = x_dict[axis], y_dict[axis]
         DLE, DRE = pf.domain_left_edge, pf.domain_right_edge
         pw = PWViewerExtJS(sl, (DLE[xax], DRE[xax], DLE[yax], DRE[yax]), setup = False)
@@ -92,7 +92,7 @@
     def create_proj(self, pf, axis, field, weight):
         if weight == "None": weight = None
         axis = inv_axis_names[axis.lower()]
-        proj = pf.h.proj(field, axis, weight_field=weight, periodic = True)
+        proj = pf.h.proj(field, axis, weight_field=weight)
         xax, yax = x_dict[axis], y_dict[axis]
         DLE, DRE = pf.domain_left_edge, pf.domain_right_edge
         pw = PWViewerExtJS(proj, (DLE[xax], DRE[xax], DLE[yax], DRE[yax]),


diff -r 1d476c1af29f294821ace48d0488425fdfce7e59 -r e19f875f8280a58d99b59b3f70e752e186ad2f56 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -1086,9 +1086,11 @@
 
     @invalidate_data
     def set_current_field(self, field):
+        field = self.data_source._determine_fields(field)[0]
         self._current_field = field
         self._frb[field]
-        if self.pf.field_info[field].take_log:
+        finfo = self.data_source._get_field_info(*field)
+        if finfo.take_log:
             self._field_transform[field] = log_transform
         else:
             self._field_transform[field] = linear_transform



https://bitbucket.org/yt_analysis/yt-3.0/changeset/18290322355b/
changeset:   18290322355b
branch:      yt-3.0
user:        MatthewTurk
date:        2012-08-17 23:06:37
summary:     Another minor fix for projections
affected #:  1 file

diff -r e19f875f8280a58d99b59b3f70e752e186ad2f56 -r 18290322355b8d8957af0b1d9e4ec928b98cc97d yt/data_objects/construction_data_containers.py
--- a/yt/data_objects/construction_data_containers.py
+++ b/yt/data_objects/construction_data_containers.py
@@ -153,7 +153,7 @@
 class YTQuadTreeProjBase(YTSelectionContainer2D):
     _key_fields = YTSelectionContainer2D._key_fields + ['weight_field']
     _type_name = "proj"
-    _con_args = ('axis', 'field', 'weight_field')
+    _con_args = ('axis', 'weight_field')
     _container_fields = ('px', 'py', 'pdx', 'pdy')
     def __init__(self, field, axis, weight_field = None,
                  center = None, pf = None, data_source=None,

Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/

--

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