[yt-users] slice: quick question

Elizabeth Tasker taskere at mcmaster.ca
Fri Aug 5 08:52:08 PDT 2011


Hi,

Simple question, I think. In the definition of divV:

http://yt.enzotools.org/doc/reference/field_list.html#divv

How is the call for slice working:

sl_left = slice(None,-2,None)
sl_right = slice(2,None,None)


and for Zeus:

sl_left = slice(None,-2,None)
sl_right = slice(1,-1,None)


The documentation says the arguments should be axis & co-ordinate and then some options. 
 

I have failed to work out the syntax based on what I know the result 
must be!

Thank you~

Elizabeth



More information about the yt-users mailing list