[yt-users] cloud in cell mesh construction for particle data

Matthew Turk matthewturk at gmail.com
Mon Jun 9 06:20:51 PDT 2014


> /bigbang/data/bgriffen/lib/yt-x86_64/src/yt-hg/yt/units/yt_array.pyc in
> convert_to_units(self, units)
>     366
>     367         self.units = new_units
> --> 368         self *= conversion_factor
>     369         return self
>     370
>
> /bigbang/data/bgriffen/lib/yt-x86_64/src/yt-hg/yt/units/yt_array.pyc in
> __imul__(self, other)
>     667         """ See __mul__. """
>     668         oth = sanitize_units_mul(self, other)
> --> 669         return np.multiply(self, oth, out=self)
>     670
>     671     def __div__(self, right_object):
>
> /bigbang/data/bgriffen/lib/yt-x86_64/src/yt-hg/yt/units/yt_array.pyc in
> __array_wrap__(self, out_arr, context)
>     966                 # casting to YTArray avoids creating a YTQuantity
> with size > 1
>     967                 return YTArray(np.array(out_arr, unit))
> --> 968             return ret_class(np.array(out_arr), unit)
>     969
>     970
>
> MemoryError:
>

Nathan, any idea why this is copying?  We shouldn't be copying here.



More information about the yt-users mailing list