[yt-svn] [yt_analysis/yt] Issue with HealpixCamera (issue #414)

astrofrog issues-reply at bitbucket.org
Wed Aug 8 09:00:08 PDT 2012


--- you can reply above this line ---

New issue 414: Issue with HealpixCamera
https://bitbucket.org/yt_analysis/yt/issue/414/issue-with-healpixcamera

astrofrog:

When trying to make an all-sky column density map following the example in the docs, I get an exception. My script is:

{{{
#!python

from yt.mods import load
import yt.visualization.volume_rendering.camera as camera

pf = load('models/plt01096')
Nside = 32
cam = camera.HEALpixCamera([0., 0., 0.], 0.2, Nside, pf=pf, log_fields=[False])
bitmap = cam.snapshot()

}}}

and the exception is

{{{
  File "allsky.py", line 7, in <module>
    bitmap = cam.snapshot()
  File "/Volumes/Raptor/Library/Python/2.7/lib/python/site-packages/yt-2.4dev-py2.7-macosx-10.7-x86_64.egg/yt/visualization/volume_rendering/camera.py", line 669, in snapshot
    self.volume.initialize_source()
  File "/Volumes/Raptor/Library/Python/2.7/lib/python/site-packages/yt-2.4dev-py2.7-macosx-10.7-x86_64.egg/yt/utilities/amr_kdtree/amr_kdtree.py", line 668, in initialize_source
    vcd = current_node.grid.get_vertex_centered_data(field,smoothed=True,no_ghost=self.no_ghost).astype('float64')
  File "/Volumes/Raptor/Library/Python/2.7/lib/python/site-packages/yt-2.4dev-py2.7-macosx-10.7-x86_64.egg/yt/data_objects/grid_patch.py", line 495, in get_vertex_centered_data
    na.add(new_field, cg[field][1: ,1: ,1: ], new_field)
ValueError: operands could not be broadcast together with shapes (25,25,25) (26,25,25) (25,25,25) 
}}}


--

This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.



More information about the yt-svn mailing list