<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>+1</div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Nathan Goldbaum<br>Graduate Student<br>Astronomy & Astrophysics, UCSC<br><a href="mailto:goldbaum@ucolick.org">goldbaum@ucolick.org</a><br>http://www.ucolick.org/~goldbaum</div></span></div></span></div></span></span>
</div>
<br><div><div>On Feb 27, 2012, at 12:38 PM, Britton Smith wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I think there is a lot of value to not having yt 3.0 be jarring to users when they are introduced to it.  I think we are wrestling with a trade-off between drawing technical distinctions and not making for a difficult transition for the user, as well as those that work on this.<br>
<br>So far, yt does a pretty good job figuring out on its own the nature of the field that's being requested.  I propose that we have both obj.fluid['whatever'] and obj.particles['whatever'] as means of explicitly stating the type of field being requested, but that we also allow for obj['whatever'] and let yt try to figure it out first.  If yt can't figure out what type of field it's being asked to get, it can throw an exception and ask for specific direction.<br>
<br>Would this satisfy people?<br><br>Britton<br><br><div class="gmail_quote">On Mon, Feb 27, 2012 at 3:18 PM, Stephen Skory <span dir="ltr"><<a href="mailto:s@skory.us">s@skory.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I've been thinking about things, and this actually dovetails onto<br>
Chris' comments as well, I think. The way I see it, in order to get to<br>
data from a dataset, here are the abstract levels yt goes through:<br>
<br>
1. Dataset Identifier (pf)<br>
2. Data Container (pf.obj)<br>
3. Data Type (particles, fluid)<br>
4. Data Type Class (POPIII, interpolated fluid)<br>
5. Data Type Specific Data ("x", "particle_position_x")<br>
<br>
What we're struggling with is where to put level #3 in our syntax. As<br>
we currently have it, it's done at the finest level with the<br>
generalized dict access for a specific thing (dd["x"],<br>
dd["ParticleMass"], dd["DerivedField"]), and yt works out the rest. I<br>
don't know if I myself like this idea, but we might want to consider<br>
putting the Data Type specification up higher. For example we could<br>
have Data Type-specific data containers (dd_fluid =<br>
pf.h.all_data("fluid")). Or, I like this even less, but it's<br>
conceivable that there could be a Data Type-specific load (pf_parts =<br>
load("DD1234", "particles").<br>
<br>
I'm not making any suggestions here, I just want to see if anyone sees<br>
any benefit from changing the level at which Data Type is specified?<br>
Feel free to say "no, stupidest idea since lawn darts." I'm not<br>
convinced it isn't.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Stephen Skory<br>
<a href="mailto:s@skory.us">s@skory.us</a><br>
<a href="http://stephenskory.com/" target="_blank">http://stephenskory.com/</a><br>
<a href="tel:510.621.3687" value="+15106213687">510.621.3687</a> (google voice)<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
</div></div></blockquote></div><br>


!DSPAM:10175,4f4be9cf7682001714235!
_______________________________________________<br>yt-dev mailing list<br><a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org<br><br><br>!DSPAM:10175,4f4be9cf7682001714235!<br></blockquote></div><br></body></html>