[yt-svn] commit/yt: ChrisMalone: make transfer_function a keyword, instead of positional, argument
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Oct 1 12:33:30 PDT 2013
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/6144554f5038/
Changeset: 6144554f5038
Branch: yt
User: ChrisMalone
Date: 2013-10-01 19:13:31
Summary: make transfer_function a keyword, instead of positional, argument
Affected #: 1 file
diff -r a80979a5173c27eced97c5f35b572d29adaddd1c -r 6144554f5038e1fade96aaba6648544fbbf3b135 yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -72,6 +72,9 @@
cubical, but if not, it is left/right, top/bottom, front/back.
resolution : int or list of ints
The number of pixels in each direction.
+ transfer_function : `yt.visualization.volume_rendering.TransferFunction`
+ The transfer function used to map values to colors in an image. If
+ not specified, defaults to a ProjectionTransferFunction.
north_vector : array_like, optional
The 'up' direction for the plane of rays. If not specific, calculated
automatically.
@@ -184,7 +187,7 @@
_tf_figure = None
_render_figure = None
def __init__(self, center, normal_vector, width,
- resolution, transfer_function,
+ resolution, transfer_function = None,
north_vector = None, steady_north=False,
volume = None, fields = None,
log_fields = None,
@@ -1465,7 +1468,7 @@
class MosaicCamera(Camera):
def __init__(self, center, normal_vector, width,
- resolution, transfer_function,
+ resolution, transfer_function = None,
north_vector = None, steady_north=False,
volume = None, fields = None,
log_fields = None,
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