<div dir="ltr">Hi Junhwan,<div><br></div><div>This is described in this YTEP: <a href="http://ytep.readthedocs.org/en/latest/YTEPs/YTEP-0013.html">http://ytep.readthedocs.org/en/latest/YTEPs/YTEP-0013.html</a> (although it looks like the YTEP is somewhat out of date as it doesn't describe the field tuple syntax we've standardized on).</div>

<div><br></div><div>Unfortunately yt-3.0 is still in flux.  As we get closer to a final release, we will improve documentation but to do so now would only introduce documentation that could become rapidly obsolete.</div>
<div>
<br></div><div>For now it's probably best to keep in contact on IRC or the mailing lists as you run into issues.</div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 20, 2013 at 12:21 PM, Junhwan Choi (최준환) <span dir="ltr"><<a href="mailto:choi.junhwan@gmail.com" target="_blank">choi.junhwan@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you Matt, the <span style="font-family:arial,sans-serif;font-size:13px">pc = ProjectionPlot(pf, "x", ("deposit","all_density"), width = (1.0, 'mpccm')) looks work.</span><div>


<span style="font-family:arial,sans-serif;font-size:13px">But, I do not know what </span><span style="font-family:arial,sans-serif;font-size:13px">("deposit","all_density") means. Is it new yt-3.0 thing?</span></div>


<div><span style="font-family:arial,sans-serif;font-size:13px">If there is document about new change for yt-3.0, it could be very helpful.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Thanks again,</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Junhwan</span></div></div><div class="HOEnZb"><div class="h5">

<div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Sep 19, 2013 at 2:43 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi Junhwan,<br>
<br>
We're still working some of the kinks out, but I think you will be<br>
able to get what you are looking for by projecting the field<br>
("deposit", "all_density") .  This would look like:<br>
<br>
pc = ProjectionPlot(pf, "x", ("deposit","all_density"), width = (1.0, 'mpccm'))<br>
<div><div><br>
On Thu, Sep 19, 2013 at 12:14 PM, Junhwan Choi (최준환)<br>
<<a href="mailto:choi.junhwan@gmail.com" target="_blank">choi.junhwan@gmail.com</a>> wrote:<br>
> Now, I try to move on yt-3.0.<br>
> For the test, I tried the following projection plot for DM and gas from the<br>
> enzo simulation.<br>
> =============================<br>
> from yt.mods import *<br>
> import matplotlib.pylab as pylab<br>
><br>
> pf = load("../DD0023/DD0023")<br>
> pc = ProjectionPlot(pf, "x", "ComovingDensity", width = (1.0, 'mpccm'))<br>
> pc.save("cen_L1M")<br>
> pc = ProjectionPlot(pf, "x", "particle_density", width = (1.0, 'mpccm'))<br>
> pc.save("cen_L1M")<br>
> =============================<br>
><br>
> I found that the gas Projection density plot works but the DM projection<br>
> plot crashs and gives me following message<br>
> ============================<br>
> yt : [INFO     ] 2013-09-18 12:00:51,613 Parameters: current_time<br>
> = 23.8165517864<br>
> yt : [INFO     ] 2013-09-18 12:00:51,613 Parameters: domain_dimensions<br>
> = [128 128 128]<br>
> yt : [INFO     ] 2013-09-18 12:00:51,614 Parameters: domain_left_edge<br>
> = [ 0.  0.  0.]<br>
> yt : [INFO     ] 2013-09-18 12:00:51,614 Parameters: domain_right_edge<br>
> = [ 1.  1.  1.]<br>
> yt : [INFO     ] 2013-09-18 12:00:51,614 Parameters: cosmological_simulation<br>
> = 1<br>
> yt : [INFO     ] 2013-09-18 12:00:51,614 Parameters: current_redshift<br>
> = 20.1060163976<br>
> yt : [INFO     ] 2013-09-18 12:00:51,614 Parameters: omega_lambda<br>
> = 0.721<br>
> yt : [INFO     ] 2013-09-18 12:00:51,614 Parameters: omega_matter<br>
> = 0.279<br>
> yt : [INFO     ] 2013-09-18 12:00:51,614 Parameters: hubble_constant<br>
> = 0.701<br>
> Parsing Hierarchy100%<br>
> ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||<br>
> Time: 00:\<br>
> 00:00<br>
> yt : [INFO     ] 2013-09-18 12:00:52,334 Gathering a field list (this may<br>
> take a moment.)<br>
> Traceback (most recent call last):<br>
>   File "test.py", line 11, in <module><br>
>     pc = ProjectionPlot(pf, "x", "particle_density", width = (1.0, 'mpccm'))<br>
>   File "/Users/jhchoi/common/src/yt-3.0-hg/yt/visualization/plot_window.py",<br>
> line 1410, in __init__<br>
>     field_parameters = field_parameters)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/construction_data_containers.py",<br>
> line 234, in __init__<br>
>     self.get_data(field)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/construction_data_containers.py",<br>
> line 278, in get_data<br>
>     chunk_fields, "io")):<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/utilities/parallel_tools/parallel_analysis_interface.py",<br>
> line 434, in parallel_objects<br>
>     for obj_id, obj in oiter:<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 450, in chunks<br>
>     self.get_data(fields)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 536, in get_data<br>
>     self._generate_fields(fields_to_generate)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 552, in _generate_fields<br>
>     self.field_data[field] = self._generate_field(field)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 219, in _generate_field<br>
>     tr = self._generate_fluid_field(field)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 236, in _generate_fluid_field<br>
>     rv = self._generate_spatial_fluid(field, ngt_exception.ghost_zones)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 252, in _generate_spatial_fluid<br>
>     ind += o.select(self.selector, self[field], rv, ind)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 189, in __getitem__<br>
>     self.get_data(f)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 536, in get_data<br>
>     self._generate_fields(fields_to_generate)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 552, in _generate_fields<br>
>     self.field_data[field] = self._generate_field(field)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 219, in _generate_field<br>
>     tr = self._generate_fluid_field(field)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 238, in _generate_fluid_field<br>
>     rv = finfo(gen_obj)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/field_info_container.py",<br>
> line 488, in __call__<br>
>     dd = self._function(self, data)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/universal_fields.py",<br>
> line 991, in _pdensity<br>
>     pmass = data[('deposit','all_mass')]<br>
>   File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/grid_patch.py",<br>
> line 85, in __getitem__<br>
>     tr = super(AMRGridPatch, self).__getitem__(key)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 189, in __getitem__<br>
>     self.get_data(f)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 536, in get_data<br>
>     self._generate_fields(fields_to_generate)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 552, in _generate_fields<br>
>     self.field_data[field] = self._generate_field(field)<br>
>   File<br>
> "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py",<br>
> line 221, in _generate_field<br>
>     raise YTCouldNotGenerateField(field, <a href="http://self.pf" target="_blank">self.pf</a>)<br>
> yt.utilities.exceptions.YTCouldNotGenerateField: Could field '('all',<br>
> 'particle_position_x')' in DD0023 could not be generated.<br>
> =====================================<br>
><br>
> Do you have any idea what is the problem?<br>
> This script has been working fine in yt-2.5.4.<br>
><br>
> Thank you in advance,<br>
> Junhwan<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>