<div dir="ltr"><div><div>Dear yt:<br><br></div>How do I adjust the line width and color for streamline plots? Drive link to streamline plot (streamlines_t000.png) and the script (yt_streamline.py) is below. <br><br>I also checked the yt link below but it does not seem to have options for line width and line color.<br><br></div>Thanks in advance<br><div><br><br><br><br><a href="https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc">https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc</a><br><div><div><br><br><a href="http://yt-project.org/doc/reference/api/generated/yt.visualization.streamlines.Streamlines.html#yt.visualization.streamlines.Streamlines">http://yt-project.org/doc/reference/api/generated/yt.visualization.streamlines.Streamlines.html#yt.visualization.streamlines.Streamlines</a><br><br><br><br><br><br><br><br><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 23, 2016 at 12:52 PM,  <span dir="ltr"><<a href="mailto:yt-users-request@lists.spacepope.org" target="_blank">yt-users-request@lists.spacepope.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send yt-users mailing list submissions to<br>
        <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:yt-users-request@lists.spacepope.org">yt-users-request@lists.spacepope.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:yt-users-owner@lists.spacepope.org">yt-users-owner@lists.spacepope.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of yt-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: yt3.3dev MPI puzzle (Stuart Levy)<br>
   2. smoothed particle velocities onto unigrid (Desika Narayanan)<br>
   3. covering_grid with RAMSES dataset (Enrico Garaldi)<br>
   4. Re: covering_grid with RAMSES dataset (Nathan Goldbaum)<br>
   5. Re: covering_grid with RAMSES dataset (Enrico Garaldi)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 22 Mar 2016 12:54:49 -0500<br>
From: Stuart Levy <<a href="mailto:salevy@illinois.edu">salevy@illinois.edu</a>><br>
To: Discussion of the yt analysis package<br>
        <<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>><br>
Subject: Re: [yt-users] yt3.3dev MPI puzzle<br>
Message-ID: <<a href="mailto:56F186E9.2010506@illinois.edu">56F186E9.2010506@illinois.edu</a>><br>
Content-Type: text/plain; charset="windows-1252"<br>
<br>
Ooh, slick!   Thank you again!<br>
<br>
On 3/22/16 12:44 PM, Kacper Kowalik wrote:<br>
> cd $HOME<br>
> hg clone <a href="https://bitbucket.org/MatthewTurk/hgbb" rel="noreferrer" target="_blank">https://bitbucket.org/MatthewTurk/hgbb</a><br>
><br>
> create or edit your $HOME/.hgrc to contain:<br>
><br>
> [extensions]<br>
> hgbb = $HOME/hgbb/hgbb.py<br>
><br>
> Then you'll be able to do the following in your local clone of yt repo:<br>
><br>
> hg bbpr  # will give you list of PRs<br>
> hg bbpr -p 2066  # would download incoming changes and suggest rev<br>
>                  # to update to<br>
><br>
> Cheers,<br>
> Kacper<br>
<br>
<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: signature.asc<br>
Type: application/pgp-signature<br>
Size: 842 bytes<br>
Desc: OpenPGP digital signature<br>
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160322/38b76db2/attachment-0001.pgp" rel="noreferrer" target="_blank">http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160322/38b76db2/attachment-0001.pgp</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 23 Mar 2016 11:04:28 -0400<br>
From: Desika Narayanan <<a href="mailto:desika.narayanan@gmail.com">desika.narayanan@gmail.com</a>><br>
To: yt-users <<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>><br>
Subject: [yt-users] smoothed particle velocities onto unigrid<br>
Message-ID:<br>
        <<a href="mailto:CAMMxB%2BMCMtJgT_YLg0iwQQHZC2E5Bhg-vBr9D7u7uKDuWjBZMQ@mail.gmail.com">CAMMxB+MCMtJgT_YLg0iwQQHZC2E5Bhg-vBr9D7u7uKDuWjBZMQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hey All,<br>
<br>
I'm having some trouble smoothing particle velocities onto a uniform<br>
(arbitrary_grid) grid.  The basic idea is that I create an arbitrary grid,<br>
then want to access the particle quantities smoothed onto that grid.  Some<br>
are relatively easy, like:<br>
<br>
mass =  obj[('deposit','PartType0_mass')].in_units('Msun')<br>
<br>
<br>
and for others, where deposited fields don't already exist, I can create<br>
those fields and it all works well:<br>
<br>
ds.add_deposited_particle_field(('PartType0', 'Temperature'),'sum')<br>
temp = obj[('deposit', 'PartType0_sum_Temperature')]<br>
<br>
but when either trying to access a deposited particle field, or creating<br>
one with the velocities, errors are abound.  I'm sure I'm just doing<br>
something foolish, but could use a little nudge in the right direction.  I<br>
created a self-contained script using the gadget zoom data set on the yt<br>
datsets to show the problem, with two different error messages pastebinned<br>
(links in the script) here:<br>
<br>
<a href="http://paste.yt-project.org/show/6352/" rel="noreferrer" target="_blank">http://paste.yt-project.org/show/6352/</a><br>
<br>
any help would be greatly appreciated!<br>
<br>
thanks,<br>
desika<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160323/a559293a/attachment-0001.htm" rel="noreferrer" target="_blank">http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160323/a559293a/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 23 Mar 2016 17:36:34 +0100<br>
From: "Enrico Garaldi" <<a href="mailto:egaraldi@uni-bonn.de">egaraldi@uni-bonn.de</a>><br>
To: <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
Subject: [yt-users] covering_grid with RAMSES dataset<br>
Message-ID: <<a href="mailto:ximss-98622@be4.uni-bonn.de">ximss-98622@be4.uni-bonn.de</a>><br>
Content-Type: text/plain; charset="utf-8"; format="flowed"<br>
<br>
Hi,<br>
I am having troubles using the smoothed_covering_grid and covering_grid with<br>
RAMSES dataset.<br>
I have yt-project version 3.2.3 and I am using the "output_00080" dataset<br>
from the yt sample datasets.<br>
<br>
smoothed_covering_grid fails (raising a RuntimeError because tot != 0, line<br>
880 of construction_data_containers.pyc), while covering_grid seems to leave<br>
unfilled the refined regions. What I mean is that if a cell is refined<br>
beyond the maximum allowed level for the grid, it is left unfilled (contrary<br>
to what happens with ENZO datasets).<br>
<br>
I am using this code:<br>
<br>
import yt<br>
import matplotlib.pyplot as plt<br>
<br>
ds = yt.load('/users/egaraldi/Documents/output_00080/info_00080.txt')<br>
<br>
cgrid = ds.covering_grid(0, left_edge=ds.domain_left_edge,<br>
dims=ds.domain_dimensions)<br>
<br>
density_field = cgrid["density"]<br>
<br>
print (density_field == 0.0).any()  #should be False but it is True<br>
<br>
plt.imshow(density_field[:,:,48].v, interpolation='none')<br>
plt.show()  ? #holes with zero-density corresponding to refined regions<br>
<br>
Am I doing something wrong?<br>
<br>
Thanks in advance,<br>
Enrico<br>
<br>
-------------------------------------<br>
Enrico Garaldi - Ph.D. student<br>
Argelander-Institut f?r Astronomie<br>
Address: Auf dem H?gel 71, 53121 Bonn, Germany<br>
Room: 1.024<br>
Phone: +49 (0) 228 73 3433<br>
egaraldi[at]uni-bonn[dot]de<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Wed, 23 Mar 2016 09:47:16 -0700<br>
From: Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>><br>
To: Discussion of the yt analysis package<br>
        <<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>><br>
Subject: Re: [yt-users] covering_grid with RAMSES dataset<br>
Message-ID:<br>
        <<a href="mailto:CAJXewOn3N_fJWBNQpXNVUtGg2s8tN_71wjmS3aL9yzqpNXVZ4A@mail.gmail.com">CAJXewOn3N_fJWBNQpXNVUtGg2s8tN_71wjmS3aL9yzqpNXVZ4A@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Enrico,<br>
<br>
I don't think you're doing anything wrong - this is a bug, likely a generic<br>
issue with the way covering grids get filled out for octree data.<br>
<br>
This issue with smoothed_covering_grid is likely another, different but<br>
related bug.<br>
<br>
Can you create an issue to track this?<br>
<br>
<a href="https://bitbucket.org/yt_analysis/yt/issues/new" rel="noreferrer" target="_blank">https://bitbucket.org/yt_analysis/yt/issues/new</a><br>
<br>
-Nathan<br>
<br>
On Wed, Mar 23, 2016 at 9:36 AM, Enrico Garaldi <<a href="mailto:egaraldi@uni-bonn.de">egaraldi@uni-bonn.de</a>><br>
wrote:<br>
<br>
> Hi,<br>
> I am having troubles using the smoothed_covering_grid and covering_grid<br>
> with RAMSES dataset.<br>
> I have yt-project version 3.2.3 and I am using the "output_00080" dataset<br>
> from the yt sample datasets.<br>
><br>
> smoothed_covering_grid fails (raising a RuntimeError because tot != 0,<br>
> line 880 of construction_data_containers.pyc), while covering_grid seems to<br>
> leave unfilled the refined regions. What I mean is that if a cell is<br>
> refined beyond the maximum allowed level for the grid, it is left unfilled<br>
> (contrary to what happens with ENZO datasets).<br>
><br>
> I am using this code:<br>
><br>
> import yt<br>
> import matplotlib.pyplot as plt<br>
><br>
> ds = yt.load('/users/egaraldi/Documents/output_00080/info_00080.txt')<br>
><br>
> cgrid = ds.covering_grid(0, left_edge=ds.domain_left_edge,<br>
> dims=ds.domain_dimensions)<br>
><br>
> density_field = cgrid["density"]<br>
><br>
> print (density_field == 0.0).any()  #should be False but it is True<br>
><br>
> plt.imshow(density_field[:,:,48].v, interpolation='none')<br>
> plt.show()    #holes with zero-density corresponding to refined regions<br>
><br>
> Am I doing something wrong?<br>
><br>
> Thanks in advance,<br>
> Enrico<br>
><br>
> -------------------------------------<br>
> Enrico Garaldi - Ph.D. student<br>
> Argelander-Institut f?r Astronomie<br>
> Address: Auf dem H?gel 71, 53121 Bonn, Germany<br>
> Room: 1.024<br>
> Phone: +49 (0) 228 73 3433<br>
> egaraldi[at]uni-bonn[dot]de<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160323/60ae8756/attachment-0001.htm" rel="noreferrer" target="_blank">http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160323/60ae8756/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Wed, 23 Mar 2016 18:24:07 +0100<br>
From: "Enrico Garaldi" <<a href="mailto:egaraldi@uni-bonn.de">egaraldi@uni-bonn.de</a>><br>
To: "Discussion of the yt analysis package"<br>
        <<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>><br>
Subject: Re: [yt-users] covering_grid with RAMSES dataset<br>
Message-ID: <<a href="mailto:ximss-99088@be4.uni-bonn.de">ximss-99088@be4.uni-bonn.de</a>><br>
Content-Type: text/plain; charset="utf-8"; format="flowed"<br>
<br>
Hi Nathan,<br>
thanks for the feedback. I will create the issue right away.<br>
<br>
Enrico<br>
<br>
On Wed, 23 Mar 2016 09:47:16 -0700<br>
  Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>> wrote:<br>
> Hi Enrico,<br>
><br>
> I don't think you're doing anything wrong - this is a<br>
>bug, likely a generic<br>
> issue with the way covering grids get filled out for<br>
>octree data.<br>
><br>
> This issue with smoothed_covering_grid is likely<br>
>another, different but<br>
> related bug.<br>
><br>
> Can you create an issue to track this?<br>
><br>
> <a href="https://bitbucket.org/yt_analysis/yt/issues/new" rel="noreferrer" target="_blank">https://bitbucket.org/yt_analysis/yt/issues/new</a><br>
><br>
> -Nathan<br>
><br>
> On Wed, Mar 23, 2016 at 9:36 AM, Enrico Garaldi<br>
><<a href="mailto:egaraldi@uni-bonn.de">egaraldi@uni-bonn.de</a>><br>
> wrote:<br>
><br>
>> Hi,<br>
>> I am having troubles using the smoothed_covering_grid<br>
>>and covering_grid<br>
>> with RAMSES dataset.<br>
>> I have yt-project version 3.2.3 and I am using the<br>
>>"output_00080" dataset<br>
>> from the yt sample datasets.<br>
>><br>
>> smoothed_covering_grid fails (raising a RuntimeError<br>
>>because tot != 0,<br>
>> line 880 of construction_data_containers.pyc), while<br>
>>covering_grid seems to<br>
>> leave unfilled the refined regions. What I mean is that<br>
>>if a cell is<br>
>> refined beyond the maximum allowed level for the grid,<br>
>>it is left unfilled<br>
>> (contrary to what happens with ENZO datasets).<br>
>><br>
>> I am using this code:<br>
>><br>
>> import yt<br>
>> import matplotlib.pyplot as plt<br>
>><br>
>> ds =<br>
>>yt.load('/users/egaraldi/Documents/output_00080/info_00080.txt')<br>
>><br>
>> cgrid = ds.covering_grid(0,<br>
>>left_edge=ds.domain_left_edge,<br>
>> dims=ds.domain_dimensions)<br>
>><br>
>> density_field = cgrid["density"]<br>
>><br>
>> print (density_field == 0.0).any()  #should be False but<br>
>>it is True<br>
>><br>
>> plt.imshow(density_field[:,:,48].v,<br>
>>interpolation='none')<br>
>> plt.show()    #holes with zero-density corresponding to<br>
>>refined regions<br>
>><br>
>> Am I doing something wrong?<br>
>><br>
>> Thanks in advance,<br>
>> Enrico<br>
>><br>
>> -------------------------------------<br>
>> Enrico Garaldi - Ph.D. student<br>
>> Argelander-Institut f?r Astronomie<br>
>> Address: Auf dem H?gel 71, 53121 Bonn, Germany<br>
>> Room: 1.024<br>
>> Phone: +49 (0) 228 73 3433<br>
>> egaraldi[at]uni-bonn[dot]de<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>><br>
<br>
-------------------------------------<br>
Enrico Garaldi - Ph.D. student<br>
Argelander-Institut f?r Astronomie<br>
Address: Auf dem H?gel 71, 53121 Bonn, Germany<br>
Room: 1.024<br>
Phone: <a href="tel:%2B49%20%280%29%20228%2073%203433" value="+49228733433">+49 (0) 228 73 3433</a><br>
egaraldi[at]uni-bonn[dot]de<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br>
<br>
------------------------------<br>
<br>
End of yt-users Digest, Vol 97, Issue 27<br>
****************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><span style="border-collapse:collapse"><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b><i>SK<sup>2</sup></i></b></span></div><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b><i><sup><br></sup></i></b></span></div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;border-collapse:collapse"><b><sup>"</sup></b></span><font face="arial, sans-serif" color="#500050"><b>Claiming that something can move faster than light is a good conversation-stopper in physics. People edge away from you in cocktail parties; friends never return phone calls. You just don’t mess with Albert Einstein.</b></font><b style="color:rgb(80,0,80);font-family:arial,sans-serif"><sup>"</sup></b></div><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></div></span></div>
</div></div></div></div></div></div>