[yt-svn] commit/yt-3.0: MatthewTurk: Adding periodic (default: False) to to_frb.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Nov 13 05:07:00 PST 2013
1 new commit in yt-3.0:
https://bitbucket.org/yt_analysis/yt-3.0/commits/d8284f61124e/
Changeset: d8284f61124e
Branch: yt-3.0
User: MatthewTurk
Date: 2013-11-12 15:56:29
Summary: Adding periodic (default: False) to to_frb.
Affected #: 1 file
diff -r 4a304d01aef985b55fc8ce9c0a6706b308c3412f -r d8284f61124e18ad74e43f7b581755c7776441ab yt/data_objects/data_containers.py
--- a/yt/data_objects/data_containers.py
+++ b/yt/data_objects/data_containers.py
@@ -661,7 +661,8 @@
return pw
- def to_frb(self, width, resolution, center=None, height=None):
+ def to_frb(self, width, resolution, center=None, height=None,
+ periodic = False):
r"""This function returns a FixedResolutionBuffer generated from this
object.
@@ -686,6 +687,9 @@
center : array-like of floats, optional
The center of the FRB. If not specified, defaults to the center of
the current object.
+ periodic : bool
+ Should the returned Fixed Resolution Buffer be periodic? (default:
+ False).
Returns
-------
@@ -726,7 +730,8 @@
yax = y_dict[self.axis]
bounds = (center[xax] - width*0.5, center[xax] + width*0.5,
center[yax] - height*0.5, center[yax] + height*0.5)
- frb = FixedResolutionBuffer(self, bounds, resolution)
+ frb = FixedResolutionBuffer(self, bounds, resolution,
+ periodic = periodic)
return frb
class YTSelectionContainer3D(YTSelectionContainer):
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