/usr/share/pyshared/quantities/constants/_utils.py is in python-quantities 0.10.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | from __future__ import absolute_import
from ._codata import physical_constants
from quantities.quantity import Quantity
from quantities.uncertainquantity import UncertainQuantity
def _cd(name):
entry = physical_constants[name]
if False: #entry['precision']:
return UncertainQuantity(
entry['value'], entry['units'], entry['precision']
)
else:
return Quantity(entry['value'], entry['units'])
|