[yt-users] FRB with different weights

Nathan Goldbaum nathan12343 at gmail.com
Wed Jul 29 13:23:37 PDT 2015


On Wed, Jul 29, 2015 at 3:20 PM, David Collins <dcollins4096 at gmail.com>
wrote:

>
>
>
>> Couldn't you just iterate over a list of data objects, generating a
>> unique FRB in each loop iteration?
>>
>> Schematically:
>>
>> >>> objects = [ds.proj(..., weight_field=None), ds.proj(...
>> weight_field='density')]
>> >>>
>> >>>for obj in objects:
>> ...       frb = obj.to_frb(...)
>> ...       ds_frb = frb.export_dataset(...)
>>
>>
> I don't follow how that gets me something I can hand to PhasePlot.  As I
> understand it, the call to PhasePlot needs to look like
> >>> phaseplot = yt.PhasePlot(data_source,x_field, y_field, z_field)
> data_source needs to be a yt container object, doesn't it?
>

Yup, I got lazy and didn't finish the script, sorry that wasn't clear:

>>> objects = [ds.proj(..., weight_field=None), ds.proj(...
weight_field='density')]
>>>
>>>for obj in objects:
...       frb = obj.to_frb(...)
...       ds_frb = frb.export_dataset(...)
...       ad = ds_frb.all_data()
...       plot = yt.PhasePlot(ad, ...)

Feel free to stop by IRC so we can hash this out quicker, btw.


>
> d.
>
>
>
>>
>>> d.
>>>
>>>
>>>
>>>>
>>>>
>>>>>
>>>>> d.
>>>>>
>>>>>
>>>>>
>>>>>> In principle we could let the projection object accept a list of
>>>>>> weight fields (which is what you want, I think), but that's not how it
>>>>>> works right now.
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> d.
>>>>>>>
>>>>>>> --
>>>>>>> -- Sent from a computer.
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> yt-users mailing list
>>>>>>> yt-users at lists.spacepope.org
>>>>>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> yt-users mailing list
>>>>>> yt-users at lists.spacepope.org
>>>>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> -- Sent from a computer.
>>>>>
>>>>> _______________________________________________
>>>>> yt-users mailing list
>>>>> yt-users at lists.spacepope.org
>>>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> yt-users mailing list
>>>> yt-users at lists.spacepope.org
>>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>>>
>>>>
>>>
>>>
>>> --
>>> -- Sent from a computer.
>>>
>>> _______________________________________________
>>> yt-users mailing list
>>> yt-users at lists.spacepope.org
>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>>
>>>
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>>
>
>
> --
> -- Sent from a computer.
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150729/0ee17648/attachment.htm>


More information about the yt-users mailing list