[Yt-svn] yt-commit r773 - trunk/yt/lagos

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Sun Sep 14 13:53:28 PDT 2008


Author: mturk
Date: Sun Sep 14 13:53:27 2008
New Revision: 773
URL: http://yt.spacepope.org/changeset/773

Log:
More problems with the interpolators.  Fixed now.  These commented lines are
remaining commented, instead of removed, because soon they will become
*uncommenteD* and end up replacing the other code below them.



Modified:
   trunk/yt/lagos/HelperFunctions.py

Modified: trunk/yt/lagos/HelperFunctions.py
==============================================================================
--- trunk/yt/lagos/HelperFunctions.py	(original)
+++ trunk/yt/lagos/HelperFunctions.py	Sun Sep 14 13:53:27 2008
@@ -78,11 +78,11 @@
                 x_i = na.minimum(na.maximum(x_i,0), len(self.x_bins)-2)
                 y_i = na.minimum(na.maximum(y_i,0), len(self.y_bins)-2)
 
-        my_vals = na.zeros(x_vals.shape, dtype='float')
-        IT.BilinearlyInterpolate(self.table,
-                                 x_vals, y_vals, self.x_bins, self.y_bins,
-                                 x_i, y_i, my_vals)
-        return my_vals
+        #my_vals = na.zeros(x_vals.shape, dtype='float')
+        #IT.BilinearlyInterpolate(self.table,
+        #                         x_vals, y_vals, self.x_bins, self.y_bins,
+        #                         x_i, y_i, my_vals)
+        #return my_vals
 
         x = (x_vals - self.x_bins[x_i]) / (self.x_bins[x_i+1] - self.x_bins[x_i])
         y = (y_vals - self.y_bins[y_i]) / (self.y_bins[y_i+1] - self.y_bins[y_i])
@@ -126,13 +126,13 @@
                 y_i = na.minimum(na.maximum(y_i,0), len(self.y_bins)-2)
                 z_i = na.minimum(na.maximum(z_i,0), len(self.z_bins)-2)
 
-        my_vals = na.zeros(x_vals.shape, dtype='float')
-        print self.table.dtype, x_vals.dtype, self.x_bins.dtype
-        IT.TrilinearlyInterpolate(self.table,
-                                 x_vals, y_vals, z_vals,
-                                 self.x_bins, self.y_bins, self.z_bins,
-                                 x_i, y_i, z_i, my_vals)
-        return my_vals
+        #my_vals = na.zeros(x_vals.shape, dtype='float')
+        #print self.table.dtype, x_vals.dtype, self.x_bins.dtype
+        #IT.TrilinearlyInterpolate(self.table,
+        #                         x_vals, y_vals, z_vals,
+        #                         self.x_bins, self.y_bins, self.z_bins,
+        #                         x_i, y_i, z_i, my_vals)
+        #return my_vals
 
         # Use notation from Paul Bourke's page on interpolation
         # http://local.wasp.uwa.edu.au/~pbourke/other/interpolation/



More information about the yt-svn mailing list