<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Ah, okay.<div class=""><br class=""></div><div class="">Thank you so much for your help!</div><div class=""><br class=""></div><div class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="">Madison Fitzgerald</div><div class=""><br class=""></div><div class="">Astrophysics | Lyman Briggs College</div><div class="">Women’s & Gender Studies | College of Arts & Letters</div><div class="">LGBTQ and Sexuality Studies Specialization</div><div class=""><div class="">Women in Science, President</div><div class="">Undergraduate Teaching Assistant</div><div class="">Department of Physics and Astronomy</div></div><div class="">Honors College</div><div class="">Michigan State University</div></div></div></div></div></div></div></div></div>
</div>
<br class=""><div style=""><blockquote type="cite" class=""><div class="">On Oct 19, 2015, at 2:15 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" class="">nathan12343@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">You probably don't want to print it if you're using it in a script, I was just printing it it to illustrate what the data look like. You can use it like any other YTArray instance. You can also cast it to ndarray by doing e.g.:<div class=""><br class=""></div><div class="">import numpy as np</div><div class=""><br class=""></div><div class="">data = np.array(phase_data)</div><div class=""><br class=""></div><div class="">-Nathan</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Oct 19, 2015 at 11:13 AM, Madison Fitzgerald <span dir="ltr" class=""><<a href="mailto:fitzg152@msu.edu" target="_blank" class="">fitzg152@msu.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Yes, that’s exactly what I’ve been trying to do!<div class=""><br class=""></div><div class="">So looking at phase_data, how do I expand it so I can see all of the information in it? print phase_data only gives so much information, where a lot of it is hidden with the line of periods. Is there a way I can print it so it will show all of the data (I know this will be very large)?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Madison</div><div class=""><br class=""></div><div class=""><div class=""><span class=""><br class=""><div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><div class="">Madison Fitzgerald</div><div class=""><br class=""></div><div class="">Astrophysics | Lyman Briggs College</div><div class="">Women’s & Gender Studies | College of Arts & Letters</div><div class="">LGBTQ and Sexuality Studies Specialization</div><div class=""><div class="">Women in Science, President</div><div class="">Undergraduate Teaching Assistant</div><div class="">Department of Physics and Astronomy</div></div><div class="">Honors College</div><div class="">Michigan State University</div></div></div></div></div></div></div></div></div>
</div>
<br class=""></span><div class=""><div class="h5"><div class=""><blockquote type="cite" class=""><div class="">On Oct 19, 2015, at 2:03 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" target="_blank" class="">nathan12343@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Hi Madison,<div class=""><br class=""></div><div class="">Take a look at this example here:</div><div class=""><br class=""></div><div class=""><div class=""><a href="https://gist.github.com/f1f0d5c1b2ff2037e7d2" target="_blank" class="">https://gist.github.com/f1f0d5c1b2ff2037e7d2</a></div></div><div class=""><br class=""></div><div class="">I think the main problem you're having is accessing the profile data using `field_data`. The profile object is designed to have a dictionary-like interface like other yt data objects, so you access the data by doing "profile[bin_field_name]". In your example, the bin field is 'cell_mass', so you would do "profile['cell_mass']".</div><div class=""><br class=""></div><div class="">See also this page in the docs: <a href="http://yt-project.org/doc/analyzing/generating_processed_data.html?highlight=create_profile#profiles-and-histograms" target="_blank" class="">http://yt-project.org/doc/analyzing/generating_processed_data.html?highlight=create_profile#profiles-and-histograms</a></div><div class=""><br class=""></div><div class="">HTH,</div><div class=""><br class=""></div><div class="">Nathan</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Oct 19, 2015 at 10:52 AM, Madison Fitzgerald <span dir="ltr" class=""><<a href="mailto:fitzg152@msu.edu" target="_blank" class="">fitzg152@msu.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">I apologize, it had a lot of unnecessary information that I didn’t know was in that document—I’ve updated my script with comments that highlights more about what I’m trying to do (<a href="http://paste.yt-project.org/show/5987/" target="_blank" class="">http://paste.yt-project.org/show/5987/</a>).<div class=""><br class=""></div><div class="">Essentially, what I’m trying to do is to take the data stored in plot.profile.field_data.values() and treat it like a YTArray, so I can manipulate it and use it in the same ways that we use other YTArrays. What I ultimately want to do with this is to find the mass at a specific location of radius and entropy on the plot using the plot data output. However, in the current format, I’m not able to do that, and I haven’t been able to figure out a way to make the data within the plot.profile object more accessible.</div><div class=""><br class=""></div><div class="">Thank you,</div><div class=""><span class=""><div class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><div class="">Madison Fitzgerald</div><div class=""><br class=""></div><div class="">Astrophysics | Lyman Briggs College</div><div class="">Women’s & Gender Studies | College of Arts & Letters</div><div class="">LGBTQ and Sexuality Studies Specialization</div><div class=""><div class="">Women in Science, President</div><div class="">Undergraduate Teaching Assistant</div><div class="">Department of Physics and Astronomy</div></div><div class="">Honors College</div><div class="">Michigan State University</div></div></div></div></div></div></div></div></div>
</div>
<br class=""></span><div class=""><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 19, 2015, at 1:27 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" target="_blank" class="">nathan12343@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><div class="gmail_extra"><br class=""><br class=""><div class="gmail_quote">On Mon, Oct 19, 2015 at 9:45 AM, Madison Fitzgerald<span class=""> </span><span dir="ltr" class=""><<a href="mailto:fitzg152@msu.edu" target="_blank" class="">fitzg152@msu.edu</a>></span><span class=""> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hello,<div class=""><br class=""></div><div class="">I’m working on accessing the information stored by a phase plot in plot.profile.field_data, but yt recognizes this as a list, so I can’t seem to get the information out of this list to use. </div><div class=""><br class=""></div><div class="">I’ve attached the script with how I’ve been attempting to access the data (<a href="http://paste.yt-project.org/show/5985/" target="_blank" class="">http://paste.yt-project.org/show/5985/</a>), and then the output and various procedures I’ve tried (<a href="http://paste.yt-project.org/show/5986/" target="_blank" class="">http://paste.yt-project.org/show/5986/</a>).</div></div></blockquote><div class=""><br class=""></div><div class="">Hi Madison,</div><div class=""><br class=""></div><div class="">I'm sorry, I'm having a tough time inferring the issue you're having reading the second pastebin.</div><div class=""><br class=""></div><div class="">Can you explain in words a little bit more exactly what the issue is? It would also help if you expand the first script to get it to the point where you are having your issue, and then explain what information you are trying to get out of the profile object.</div><div class=""><br class=""></div><div class="">-Nathan</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><br class=""></div><div class="">I’ve been working on a MacBook Pro, OS X 10.10.5, with yt version 3.2 (installed using miniconda, so no changeset).</div><div class=""><br class=""></div><div class="">I appreciate any help you might be able to give me.</div><div class=""><br class=""></div><div class="">Thank you,</div><div class=""><div class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><div class="">Madison Fitzgerald</div><div class=""><br class=""></div><div class="">Astrophysics | Lyman Briggs College</div><div class="">Women’s & Gender Studies | College of Arts & Letters</div><div class="">LGBTQ and Sexuality Studies Specialization</div><div class=""><div class="">Women in Science, President</div><div class="">Undergraduate Teaching Assistant</div><div class="">Department of Physics and Astronomy</div></div><div class="">Honors College</div><div class="">Michigan State University</div></div></div></div></div></div></div></div></div></div><br class=""></div></div><br class="">_______________________________________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class=""><br class=""></blockquote></div><br class=""></div></div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important" class="">_______________________________________________</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important" class="">yt-users mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><a href="mailto:yt-users@lists.spacepope.org" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" class="">yt-users@lists.spacepope.org</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a></div></blockquote></div><br class=""></div></div></div></div><br class="">_______________________________________________<br class="">
yt-users mailing list<br class="">
<a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class=""></div></blockquote></div><br class=""></div></div></div></div></div><br class="">_______________________________________________<br class="">
yt-users mailing list<br class="">
<a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br class=""></div></blockquote></div><br class=""></div></body></html>