[yt-users] Connected Sets

Geoffrey So gsiisg at gmail.com
Tue Sep 18 14:37:03 PDT 2012


if you defined sphere as something like:

sphere=pf.h.sphere([.5,.5,.5],0.3)

then

connected_sets[i][0]['Density']

for i = 0, 1, 2...

lets me see the values.

Hope that helped.

From
G.S.

On Tue, Sep 18, 2012 at 2:23 PM, Francia F. Riesco <ff2214 at columbia.edu>wrote:

> Hello Everybody,
>  I am writing you this time to ask if anybody has an example how to
> manipulate data. For instance, I am using
> contour_values, connected_sets = sphere.extract_connected_sets(**"Density",
> levels, mi, ma)
>
>
>  print connected_sets[i]
>
> #{0: ExtractedRegionBase (redshift0058): _base_region=AMRSphere
> (redshift0058): center=[ 0.1005697   0.15871103  0.37831026],
> radius=0.0124657962771}
>
>
>
> and connected_sets is an array of dict of dicts, but I couldn't find any
> example of how manipulate a dict object.
>  Thank in Advance
>
>
>
> --
> Francia F.R.
> ______________________________**_________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/**listinfo.cgi/yt-users-**spacepope.org<http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20120918/c0471674/attachment.htm>


More information about the yt-users mailing list