[yt-svn] commit/yt: MatthewTurk: Removing boolean data objects recipe.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Jul 15 13:01:40 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/15df3bd5cf75/
Changeset:   15df3bd5cf75
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-07-15 21:43:19
Summary:     Removing boolean data objects recipe.
Affected #:  2 files

diff -r 7e7ef2aaa7159717cda503f44cdcf379f8060aa2 -r 15df3bd5cf753b0c981ff75210c860eceda5b3dc doc/source/cookbook/boolean_data_objects.py
--- a/doc/source/cookbook/boolean_data_objects.py
+++ /dev/null
@@ -1,32 +0,0 @@
-### THIS RECIPE IS CURRENTLY BROKEN IN YT-3.0
-### DO NOT TRUST THIS RECIPE UNTIL THIS LINE IS REMOVED
-
-import yt
-
-ds = yt.load("Enzo_64/DD0043/data0043")  # load data
-# Make a few data ojbects to start. Two boxes and two spheres.
-re1 = ds.region([0.5, 0.5, 0.5], [0.4, 0.4, 0.4], [0.6, 0.6, 0.6])
-re2 = ds.region([0.5, 0.5, 0.5], [0.5, 0.5, 0.5], [0.6, 0.6, 0.6])
-sp1 = ds.sphere([0.5, 0.5, 0.5], 0.05)
-sp2 = ds.sphere([0.1, 0.2, 0.3], 0.1)
-
-# The "AND" operator. This will make a region identical to re2.
-bool1 = ds.boolean([re1, "AND", re2])
-xp = bool1["particle_position_x"]
-
-# The "OR" operator. This will make a region identical to re1.
-bool2 = ds.boolean([re1, "OR", re2])
-
-# The "NOT" operator. This will make a region like re1, but with the corner
-# that re2 covers cut out.
-bool3 = ds.boolean([re1, "NOT", re2])
-
-# Disjoint regions can be combined with the "OR" operator.
-bool4 = ds.boolean([sp1, "OR", sp2])
-
-# Find oddly-shaped overlapping regions.
-bool5 = ds.boolean([re2, "AND", sp1])
-
-# Nested logic with parentheses.
-# This is re1 with the oddly-shaped region cut out.
-bool6 = ds.boolean([re1, "NOT", "(", re1, "AND", sp1, ")"])

diff -r 7e7ef2aaa7159717cda503f44cdcf379f8060aa2 -r 15df3bd5cf753b0c981ff75210c860eceda5b3dc doc/source/cookbook/constructing_data_objects.rst
--- a/doc/source/cookbook/constructing_data_objects.rst
+++ b/doc/source/cookbook/constructing_data_objects.rst
@@ -16,16 +16,6 @@
 
 .. yt_cookbook:: find_clumps.py
 
-Boolean Data Objects
-~~~~~~~~~~~~~~~~~~~~
-
-Below shows the creation of a number of boolean data objects, which are built
-upon previously-defined data objects. The boolean data objects can be used like
-any other, except for a few cases.  Please see :ref:`boolean_data_objects` for
-more information.
-
-.. yt_cookbook:: boolean_data_objects.py
-
 Extracting Fixed Resolution Data
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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