Hey Desika,<div><br></div><div>You're right, you need to use all_data:</div><div><br></div>import yt<br><div>ds = yt.load("your_dataset")</div>ad = ds.all_data()<div>print ad["PartType0", "Coordinates"]</div>
<div><br></div><div>In general all yt data sources will print out the flattened data contained in the source when you query them like a dictionary using an unambiguous string field name or ('field_type', 'field name')<span></span> tuple.</div>
<div><br></div><div>Nathan<br><div><br>On Thursday, May 22, 2014, Desika Narayanan <<a href="mailto:dnarayan@haverford.edu">dnarayan@haverford.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi yt,<div><br></div><div>I have a pretty simple question that I ought to know the answer to -  how do I extract the actual values in the field_list or derived_field_list of a ds?</div><div><br></div><div>For example, I have a field: <span style="font-family:Monaco;font-size:11px">('PartType0', 'Coordinates'),</span></div>


<div><span style="font-family:Monaco;font-size:11px"><br></span></div><div>but printing something like pf[('PartType0','Coordinates')] doesn't return the list of particle type 0 coordinates (or anything for that matter).  Do I have to access this through a pf.all_data() command somehow?  </div>


<div><span style="font-family:Monaco;font-size:11px"><br></span></div><div><span style="font-family:Monaco;font-size:11px">Thanks</span></div><div><span style="font-family:Monaco;font-size:11px">-desika</span></div><div>

<span style="font-family:Monaco;font-size:11px"><br>
</span></div></div>
</blockquote></div></div>