Hi everyone, I am projecting a thin volume of a dataset, and I'd like to limit HopCircleCallback to only plot the circles for haloes inside that region. Can anyone suggest an elegant way to do this? Thanks! _______________________________________________________ sskory@physics.ucsd.edu o__ Stephen Skory http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student ________________________________(_)_\(_)_______________
I'd say use the FakeGridForParticles, populate it with the halo
centers, then use _get_cut_mask for that to get the halos to plot, by
calling plot.data._data_source in the callback __call__.
On Mon, Feb 2, 2009 at 9:55 AM, Stephen Skory
Hi everyone,
I am projecting a thin volume of a dataset, and I'd like to limit HopCircleCallback to only plot the circles for haloes inside that region. Can anyone suggest an elegant way to do this? Thanks!
_______________________________________________________ sskory@physics.ucsd.edu o__ Stephen Skory http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student ________________________________(_)_\(_)_______________
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
----- Original Message ----
From: Matthew Turk
To: yt-dev@lists.spacepope.org Sent: Monday, February 2, 2009 9:57:58 AM Subject: Re: [Yt-dev] Callbacks in a pf.h.region I'd say use the FakeGridForParticles, populate it with the halo centers, then use _get_cut_mask for that to get the halos to plot, by calling plot.data._data_source in the callback __call__.
I'm going to need a bigger push... FakeGridForParticles needs a grid, but how do I make a grid object of halo centers and radii? _______________________________________________________ sskory@physics.ucsd.edu o__ Stephen Skory http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student ________________________________(_)_\(_)_______________
Hmm, good point. Maybe you should just implement (in the
SS_HopOUtput.py file, which should soon be changed to be the main HOP)
a FakeGridForHalos. Have it fill in the same way the other does, but
you'll have to do _corners manually. dds should be the minimum halo
radius I guess? Hmm. Let me think about this, if that doens't work
out.
On Mon, Feb 2, 2009 at 10:32 AM, Stephen Skory
----- Original Message ----
From: Matthew Turk
To: yt-dev@lists.spacepope.org Sent: Monday, February 2, 2009 9:57:58 AM Subject: Re: [Yt-dev] Callbacks in a pf.h.region I'd say use the FakeGridForParticles, populate it with the halo centers, then use _get_cut_mask for that to get the halos to plot, by calling plot.data._data_source in the callback __call__.
I'm going to need a bigger push...
FakeGridForParticles needs a grid, but how do I make a grid object of halo centers and radii?
_______________________________________________________ sskory@physics.ucsd.edu o__ Stephen Skory http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student ________________________________(_)_\(_)_______________ _______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
Hmm, good point. Maybe you should just implement (in the SS_HopOUtput.py file, which should soon be changed to be the main HOP) a FakeGridForHalos. Have it fill in the same way the other does, but you'll have to do _corners manually. dds should be the minimum halo radius I guess? Hmm. Let me think about this, if that doens't work out.
I still don't quite understand what I would need to do here. For now, I just made a copy of the hop_list in my run script, only keeping the haloes in the region I want. _______________________________________________________ sskory@physics.ucsd.edu o__ Stephen Skory http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student ________________________________(_)_\(_)_______________
Okay, open a ticket that we need a halo cutter, and I'll take a look
at it in a few days. Sorry I couldn't come up with something quicker,
but I'm glad you got it to work.
On Mon, Feb 2, 2009 at 10:58 AM, Stephen Skory
Hmm, good point. Maybe you should just implement (in the SS_HopOUtput.py file, which should soon be changed to be the main HOP) a FakeGridForHalos. Have it fill in the same way the other does, but you'll have to do _corners manually. dds should be the minimum halo radius I guess? Hmm. Let me think about this, if that doens't work out.
I still don't quite understand what I would need to do here. For now, I just made a copy of the hop_list in my run script, only keeping the haloes in the region I want.
_______________________________________________________ sskory@physics.ucsd.edu o__ Stephen Skory http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student ________________________________(_)_\(_)_______________ _______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
Okay, open a ticket that we need a halo cutter, and I'll take a look at it in a few days. Sorry I couldn't come up with something quicker, but I'm glad you got it to work.
Permissions are still messed up; I can't make a ticket. Also, don't apologize for not dropping what you're doing and fixing my problem! I'm the one who is sorry I can't do this elegantly in the yt-way. _______________________________________________________ sskory@physics.ucsd.edu o__ Stephen Skory http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student ________________________________(_)_\(_)_______________
participants (2)
-
Matthew Turk
-
Stephen Skory