← Back to team overview

python-quantities-developers team mailing list archive

Re: [Question #102044]: Which units are supported out of the box?

 

Question #102044 on python-quantities changed:
https://answers.launchpad.net/python-quantities/+question/102044

    Status: Open => Answered

Tony S Yu proposed the following answer:
Instead of looking through the source, you could use tab-completion in
IPython see what units are available:

In [1]: import quantities as pq

In [2]: pq.mass.<tab>

After pressing tab, IPython will display everything in the mass module
(mostly units, but there are some unrelated bits, as well). You could
also do this in the normal python interpretor, with a little more work

>>> import quantities as pq
>>> dir(pq.mass)

which will print a list of names defined the mass module.

I'm not saying this is a replacement for documentation, but this is what
i use.

-- 
You received this question notification because you are a member of
Python Quantities Development Team, which is an answer contact for
python-quantities.