Implement the three major unit system schemas

This commit is contained in:
jriegel
2013-12-05 18:16:31 +01:00
parent b52de075e1
commit eb5cc8ed6c
14 changed files with 220 additions and 51 deletions

View File

@@ -70,6 +70,11 @@ PyMethodDef UnitsApi::Methods[] = {
//},
{"parseQuantity", (PyCFunction) UnitsApi::sParseQuantity ,1,
"parseQuantity(string) -> Base.Quantity()\n\n"
"calculate a mathematical expression with units to a quantity object. \n"
"can be used for simple unit translation like: \n"
" parseQuantity('10m')\n"
" or for more complex espressions:\n"
" parseQuantity('sin(pi)/50.0 m/s^2')\n"
},
{NULL, NULL, 0, NULL} /* Sentinel */