[Yt-dev] vector functions

Matthew Turk matthewturk at gmail.com
Fri Aug 20 16:36:26 PDT 2010


Hi Stephen,

These look great and very well-documented.  I'd say put them in
math_utils for sure.  Would it be possible to change the function
names from CaptialAtEachWordStart to lowercase_and_underlined, to
follow PEP-8?

thanks,

Matt

On Fri, Aug 20, 2010 at 4:07 PM, Stephen Skory <stephenskory at yahoo.com> wrote:
> Hi all,
>
> I've just written functions to compute velocities of things in various ways,
> primarily for halos. For example, one could use these to calculate the circular
> velocity curve of a halo very easily. I do this by rotating and translating the
> coordinates to make the velocity calculations very easy. I am not done with this
> stuff, I need to write some code such that the vector output can be de-rotated
> back into the original physical coordinates. For now it outputs velocities as 1D
> speeds, which is good enough for me right now. Anyway, what I'm asking is, where
> do we think is the best place to sick this in terms of the yt directory
> hierarchy? I have a file named 'math_utils.py' which might be appropriate for
> this. This will go in yt-dev for the near future. Ideas?
>
> The heavily documented code:
>
> http://paste.enzotools.org/show/1105/
>  _______________________________________________________
> sskory at physics.ucsd.edu           o__  Stephen Skory
> http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student
> ________________________________(_)_\(_)_______________
>
> _______________________________________________
> Yt-dev mailing list
> Yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>



More information about the yt-dev mailing list