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

Bitbucket commits-noreply at bitbucket.org
Thu Jun 23 06:44:59 PDT 2011


2 new changesets in yt:

http://bitbucket.org/yt_analysis/yt/changeset/8a3925c8c8cf/
changeset:   8a3925c8c8cf
branch:      yt
user:        jwise77
date:        2011-06-23 15:02:22
summary:     mapserver recognizes a custom port number if specified with the host
IP.  Default is still 8080.
affected #:  1 file (229 bytes)

--- a/yt/utilities/command_line.py	Wed Jun 22 10:47:44 2011 -0700
+++ b/yt/utilities/command_line.py	Thu Jun 23 09:02:22 2011 -0400
@@ -529,7 +529,13 @@
         import yt.utilities.bottle as bottle
         bottle.debug(True)
         if opts.host is not None:
-            bottle.run(server='rocket', host=opts.host)
+            colonpl = opts.host.find(":")
+            if colonpl >= 0:
+                port = int(opts.host.split(":")[-1])
+                opts.host = opts.host[:colonpl]
+            else:
+                port = 8080
+            bottle.run(server='rocket', host=opts.host, port=port)
         else:
             bottle.run(server='rocket')
 


http://bitbucket.org/yt_analysis/yt/changeset/12c36a2e88b4/
changeset:   12c36a2e88b4
branch:      yt
user:        jwise77
date:        2011-06-23 15:44:43
summary:     pannable_map respects the take_log attribute in the field list
affected #:  1 file (159 bytes)

--- a/yt/gui/reason/pannable_map.py	Thu Jun 23 09:02:22 2011 -0400
+++ b/yt/gui/reason/pannable_map.py	Thu Jun 23 09:44:43 2011 -0400
@@ -79,9 +79,12 @@
                                     self.pf.domain_right_edge[1],
                                     dd*DW[0] / (64*256),
                                     dd*DW[0])
-        cmi = na.log10(cmi)
-        cma = na.log10(cma)
-        to_plot = apply_colormap(na.log10(frb[self.field]), color_bounds = (cmi, cma))
+        if self.pf.field_info[self.field].take_log:
+            cmi = na.log10(cmi)
+            cma = na.log10(cma)
+            to_plot = apply_colormap(na.log10(frb[self.field]), color_bounds = (cmi, cma))
+        else:
+            to_plot = apply_colormap(frb[self.field], color_bounds = (cmi, cma))
         rv = write_png_to_string(to_plot)
         return rv

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