[yt-dev] Issue #937: to_pw silently drops some fields (yt_analysis/yt)

Nathan Goldbaum nathan12343 at gmail.com
Fri Nov 7 10:58:24 PST 2014


This is due to implementation details in the PlotWindow class. It would
take some refactoring to allow plotting these fields. Patches welcome :)
On Fri, Nov 7, 2014 at 10:56 AM Matthew Turk <matthewturk at gmail.com> wrote:

> Yes, this is frustrating, and I have been bitten by it.
>
> On Fri Nov 07 2014 at 12:54:32 PM Douglas Rudd <issues-reply at bitbucket.org>
> wrote:
>
>> New issue 937: to_pw silently drops some fields
>> https://bitbucket.org/yt_analysis/yt/issue/937/to_pw-
>> silently-drops-some-fields
>>
>> Douglas Rudd:
>>
>> to_pw silently drops fields from frb._exclude_fields and _key_fields
>> without notifying the user.
>>
>> ```
>> #!python
>>
>> >> ds = yt.load("outputs/sedov_000960.art")
>> >> fields = ["density","temperature","dx"]
>> >> plot = ds.slice(2, ds.domain_center[2]).to_pw(fields)
>> >> print plot.fields
>> ['density', 'temperature']
>> ```
>>
>> In this case ('index', 'dx') is in both exclusion lists. Any reason I
>> can't plot a slice of my resolution?
>>
>>
>> _______________________________________________
>> yt-dev mailing list
>> yt-dev at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>>
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20141107/5f5d147f/attachment.htm>


More information about the yt-dev mailing list