[yt-users] Is pc.add_projection("Density", ax) a valid statement ?
Matthew Turk
matthewturk at gmail.com
Thu Nov 26 11:54:07 PST 2009
Hi Shankar,
The code looks okay to me. Can you please send the whole error message
or run with --paste so that we can see what is going wrong? The
traceback seems truncated.
Does it work without the hop circles?
-Matt
On Nov 26, 2009, at 10:57 AM, "Agarwal, Shankar" <sagarwal at ku.edu>
wrote:
> Hi, In the following code, I am getting an error when I use
> pc.add_projection("Density", ax). But If I specifically use
> pc.add_projection("Density", 0) then it runs fine. Any idea ?
>
>
> Code...
>
> from yt.mods import *
> pf = load("RedshiftOutput0002")
> pc = PlotCollection(pf)
> for ax in range(3):
> p = pc.add_projection("Density", ax)
> p.modify["hop_circles"](halos, max_number=None, annotate=True,
> min_size=0, max_size=100000000, font_size=8, print_halo_size=True,
> print_halo_mass=True, width=None)
> pc.save()
>
>
>
> Error....
>
> Traceback (most recent call last):
> File "hop_yt.py", line 20, in <module>
> p = pc.add_projection("Density", ax)
> File "/autohome/u118/agarwa23/enzo1/src/yt/yt/raven/
> PlotCollection.py", line 262, in add_projection
> return self._add_projection(PlotTypes.ProjectionPlot, *args,
> **kwargs)
> File "/autohome/u118/agarwa23/enzo1/src/yt/yt/raven/
> PlotCollection.py", line 285, in _add_projection
> center=center, **kwargs)
>
>
> Shankar
> KU cosmology
> _______________________________________________
> 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