Hi,

NegEscapeVelocity is a field I created that needs a field parameter. Density doesn't need any field parameters and works fine. I have the same problem if I try it with any field that needs a field parameter, for example:

contours = dd.extract_connected_sets("Radius", 1, 30.0, maxv, log_space=False)

fails because it needs:

center = data.get_field_parameter("center")

I can get around this by making the parameters I need global variables, I just wondered if there was a way to pass field variables to this routine?

Elizabeth



On Oct 20, 2011, at 6:05 PM, Geoffrey So wrote:

I wasn't able to reproduce your error.  Is "NegEscapeVelocity" a derived field, and do you have the same problem if you test it out on "Density" ?

From
G.S.

On Thu, Oct 20, 2011 at 1:32 AM, Elizabeth Tasker <tasker@astro1.sci.hokudai.ac.jp> wrote:
Hi,

Is there a way of passing field parameters to extract_connected_sets?

Currently,

print dd["NegEscapeVelocity"]

works fine but

contours = dd.extract_connected_sets("NegEscapeVelocity", 1, 30.0, maxv, log_space=False)

complains it can't find the set field variables.

Elizabeth
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org