← Back to team overview

python-quantities-developers team mailing list archive

Re: [Question #92541]: is chain transform possible ?

 

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

    Status: Open => Answered

Tony S Yu proposed the following answer:
I think the quantities method you're looking for is called `rescale`. In
other words:

>>> import quantities as pq
>>> coordinates = [ 1.0, 2.0, 3.0] * pq.angstrom
>>> coordinates.rescale(pq.meter).magnitude.tolist()

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