[yt-users] TIPSY to regular grid

Matthew Turk matthewturk at gmail.com
Fri Dec 11 20:27:56 PST 2015


Hi Bruno,

That's an odd one -- can you supply the rest of the traceback?

On Fri, Dec 11, 2015 at 10:16 PM, Bruno Villasenor
<br1villasen at gmail.com> wrote:
> Hello yt-users,
>
> I'm trying to get data from a TIPSY file to a fixed resolution array,
> The simplest version of my code is below:
>
> #####################################################
> ds = yt.load( dataDir + dataFile,
>  parameter_file= dataDir + paramFile )
>
> ad = ds.all_data()
> left = ad.left_edge
>
> level = 1
> data = ds.covering_grid(level=level, left_edge=left,
>                                       dims=ds.domain_dimensions * 2**level)
>
> dmDens = data[('deposit','DarkMatter_density')]
> ####################################################
>
> I'm getting this error:
> ValueError: operands could not be broadcast together with shapes (2,2,2,8)
> (2,2,2,0) (2,2,2,8)
>
> Any ideas?
>
> YT_version: 3.1-dev
>
> Thanks in advance.
> Bruno
>
>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>



More information about the yt-users mailing list