[yt-svn] commit/yt: nscudder: Fixed an issue in volume rendering through the command line, where the camera object would default to 'Density' for its field instead of taking the supplied field.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Jul 3 14:07:35 PDT 2013


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/f07ee507cefe/
Changeset:   f07ee507cefe
Branch:      yt
User:        nscudder
Date:        2013-07-03 22:58:38
Summary:     Fixed an issue in volume rendering through the command line, where the camera object would default to 'Density' for its field instead of taking the supplied field.
Affected #:  1 file

diff -r af95c721b2e0cf1b6b795df344b818c6a6c2d988 -r f07ee507cefed300665d0c39435245a9fc299ddf yt/utilities/command_line.py
--- a/yt/utilities/command_line.py
+++ b/yt/utilities/command_line.py
@@ -1401,7 +1401,7 @@
         tf = ColorTransferFunction((mi-2, ma+2))
         tf.add_layers(n_contours,w=contour_width,col_bounds = (mi,ma), colormap=cmap)
 
-        cam = pf.h.camera(center, L, width, (N,N), transfer_function=tf)
+        cam = pf.h.camera(center, L, width, (N,N), transfer_function=tf, fields=[field])
         image = cam.snapshot()
 
         if args.enhance:

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