[yt-dev] convert_to_cgs

Ben Thompson bthompson2090 at gmail.com
Sun Nov 16 14:57:07 PST 2014


Personally, with the amount of codes (and the different astrophysics people
are doing with those code). Some sort of config/user-set-defaults system
would be cool ... Which is what I think you are suggesting? cgs is a nice
"default go-to".. but it would be cool to have a few settings pre-saved
(maybe into a JSON file or something).. in which a user can provide at
anytime.. so that there is no need to add on .in_units(MSun, Gyr, Mpc).

Ben.

On Sun, Nov 16, 2014 at 7:08 PM, Nathan Goldbaum <nathan12343 at gmail.com>
wrote:

> I don't think it will be simple - there are almost certainly places where
> we assume the underlying representation is CGS. That said, I think it would
> be possible.
>
> Matt, can you write up a YTEP for this first so we have a better idea of
> your implementation and design ideas?
>
> On Sun, Nov 16, 2014 at 10:40 AM John Zuhone <jzuhone at gmail.com> wrote:
>
>> I'm assuming that "underneath the hood" everything would still have to be
>> based on *something* by default, which would be cgs?
>> On Sun, Nov 16, 2014 at 10:09 AM Matthew Turk <matthewturk at gmail.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> Would it be feasible (I am volunteering to do this if so) to change
>>> instances of convert_to_cgs to something like convert_to_native, and then
>>> adding a new set of unit collections?  This would basically mean if we
>>> wanted units to be in 10^10MSun + Mpc + GYr, it would convert to that,
>>> rather than cgs.  My naive assumption is that if we had string keys for
>>> unit collections, this would be simple, and the unit object would simply
>>> check the string key, get the units, and go.
>>>
>>> -Matt
>>> _______________________________________________
>>> yt-dev mailing list
>>> yt-dev at lists.spacepope.org
>>> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>>>
>> _______________________________________________
>> yt-dev mailing list
>> yt-dev at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>>
>
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20141116/eb10510e/attachment.htm>


More information about the yt-dev mailing list