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

Douglas Harvey Rudd drudd at uchicago.edu
Fri Nov 7 11:14:43 PST 2014


Okay, that makes sense. The override_field attribute looks like an attempt to mark those always-fields as ones that the user really requested, but not fully utilized.

Douglas Rudd
Scientific Computing Consultant
Research Computing Center
drudd at uchicago.edu<mailto:drudd at uchicago.edu>



On Nov 7, 2014, at 1:12 PM, Matthew Turk <matthewturk at gmail.com<mailto:matthewturk at gmail.com>> wrote:

Yes, the simple explanation is that fields get added when used in the underlying data source.  These fields are used always, when making the image.  So without excluding them, they would always be saved to disk.

On Fri Nov 07 2014 at 1:11:29 PM Douglas Harvey Rudd <drudd at uchicago.edu<mailto:drudd at uchicago.edu>> wrote:
Is there a simple explanation for why they can’t be treated as normal fields and what that refactoring would look like?

SlicePlot suffers from the same issue for the same reason (it’s getting dropped at the PlotWindow stage).

Douglas Rudd
Scientific Computing Consultant
Research Computing Center
drudd at uchicago.edu<mailto:drudd at uchicago.edu>



On Nov 7, 2014, at 12:58 PM, Nathan Goldbaum <nathan12343 at gmail.com<mailto:nathan12343 at gmail.com>> wrote:

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<mailto: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<mailto: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<mailto: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<mailto: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<mailto: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<mailto: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<mailto: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/c9bd699c/attachment.html>


More information about the yt-dev mailing list