[yt-users] Runtime Warning

Matthew Turk matthewturk at gmail.com
Sun Feb 14 11:38:54 PST 2016


Hi Sushil,

This is non-fatal -- it just means there are some divide by zeros, but I
suspect that given that it's coming from the plot modifications file, it's
not a big deal.

On Sun, Feb 14, 2016 at 12:14 PM, Sushilkumar <sushil.sush19us at gmail.com>
wrote:

> Dear yt:
>
> Upon running a script I get the following warning, which does not occur
> for other scripts. Could you let me know what this warning means and
> whether it is a cause of concern?
>
> /state/partition1/anaconda/lib/python2.7/site-packages/yt/visualization/plot_modifications.py:387:
> RuntimeWarning: invalid value encountered in divide
>   pixX /= nn
> /state/partition1/anaconda/lib/python2.7/site-packages/yt/visualization/plot_modifications.py:388:
> RuntimeWarning: invalid value encountered in divide
>   pixY /= nn
>
>
>
> Thanks in advance
>
>
>
>
>
>
>
> On Sat, Feb 13, 2016 at 12:52 PM, <yt-users-request at lists.spacepope.org>
> wrote:
>
>> Send yt-users mailing list submissions to
>>         yt-users at lists.spacepope.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>         http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> or, via email, send a message with subject or body 'help' to
>>         yt-users-request at lists.spacepope.org
>>
>> You can reach the person managing the list at
>>         yt-users-owner at lists.spacepope.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of yt-users digest..."
>>
>>
>> Today's Topics:
>>
>>    1. Re: Error in making light ray for a gadget dataset (Matthew Turk)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Fri, 12 Feb 2016 14:42:08 -0600
>> From: Matthew Turk <matthewturk at gmail.com>
>> To: Discussion of the yt analysis package
>>         <yt-users at lists.spacepope.org>
>> Subject: Re: [yt-users] Error in making light ray for a gadget dataset
>> Message-ID:
>>         <CALO3=5HRmi3919BJC9noCtCaS3BCV96==
>> HDxO1qwamxgnNE2Mw at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi Bili,
>>
>> Hm, I'm honestly not sure.  This looks like an oddity in the way the
>> octree
>> is being constructed in spatial dimensions.  Any chance you can reproduce
>> this with a ray or ortho_ray object, which should simplify the number of
>> moving parts?
>>
>> On Tue, Feb 9, 2016 at 2:04 PM, Bili Dong - Gmail <qobilidop at gmail.com>
>> wrote:
>>
>> > Hi yt users,
>> >
>> > I'm trying to make a light ray for a gadget dataset using this script:
>> > http://paste.yt-project.org/show/6234/
>> >
>> > But I get the following error:
>> >
>> > ```
>> >
>> > /Users/qobilidop/repos/yt/yt/geometry/geometry_handler.py in
>> fcoords(self)    320             c = obj.select_fcoords(self.dobj)    321
>>            if c.shape[0] == 0: continue--> 322
>>  ci[ind:ind+c.shape[0], :] = c    323             ind += c.shape[0]    324
>>        return ci
>> > ValueError: could not broadcast input array from shape (81,3) into
>> shape (40,3)
>> >
>> > ```
>> >
>> >
>> > My yt is on the changeset d47150dfbde6.
>> >
>> >
>> > I'm wondering if I'm doing it the correct way? And how could I solve
>> the problem?
>> >
>> >
>> > Thanks,
>> >
>> > Bili
>> >
>> >
>> > _______________________________________________
>> > 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/20160212/24b792e6/attachment.html
>> >
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>>
>> ------------------------------
>>
>> End of yt-users Digest, Vol 96, Issue 18
>> ****************************************
>>
>
>
>
> --
> *SK2*
>
> *"**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.**"*
>
>
> _______________________________________________
> 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/20160214/15a57b8a/attachment.htm>


More information about the yt-users mailing list