Python units/quantities packages

Entreprises > Dévelopement informatique > Frameworks
2016-05-09 20:40:39
There are far too many different packages for unit conversion / quantities calculations in Python. Developers should cooperate on one package instead of fragmenting development across many different ones. This documents which features are supported by each package.
Mis à jourSite webPyPI DLs/monthLast UpdateBuilt-in unitsBuilt-in constantsArbitrary prefixesnp scalar arraynp object arrayDecimalFractionUncertaintiesstringabsolute °CdBSyntaxComments
scipy.constants2016-03-07 03:52:06 50Oui 400 in CODATANon- no unit objects- no unit objects- no unit objects- no unit objects- no unit objects- no unit objectsNonNonconstants.c == 299792458.0Just tables of numerical constants; unit-aware calculations not supported. scipy.constants.physical_constants specifies units as strings and uncertainties. Could be used to supply other packages with coefficients.
sympy.physics.units2016-03-07 03:52:06 200?Oui- u.mega*u.meter but not u.megameterNonOui array([1, 2, 3])*u.m- converts to sympy- converts to sympycm = u.m/100
Pint2016-05-09 20:40:39 Mm, GV, etc.Oui array([1,2,3])*ureg.m or ureg.m*array([1,2,3])Non ValueErrorOuiOuiOui built-inOuiOuiNonV = 1***3
astropy.units2016-03-07 03:54:44 * u.meter / (32.0 * u.second)
Quantities2016-03-07 03:54:44http://python-quantities.readthedocs.org39172016-02-21Oui array([1,2,3]) * pq.JNon
Units2016-03-07 03:52:06
numericalunits2016-03-07 03:54:44 issues, random set of units = not deterministic, need to do calculations twice to confirm they are being done correctly
SciMath Units2016-03-07 03:56:59 built-in
Buckingham2016-03-07 03:56:59 53NonOuiV = Number(1,dims='decimeter^3')Single file
Unum2016-03-07 03:52:06
natu2016-03-07 03:52:06 40OuiOui m*array([1, 2, 3])Oui array([1, 2, 3])*mNonNonOuiNonOuiOuiV = 1*dm**3weird format for dB, Hz != 1/s
misu2016-03-07 03:52:06
Magnitude2016-03-07 03:52:06
udunitspy2016-03-07 03:52:06 wrapper for UDUNITS2
DimPy2016-03-07 03:52:06
Scalar2016-03-07 03:52:06
ScientificPython PhysicalQuantities2016-03-07 03:52:06
  • 2016-03-06 19:38:38
    2016-05-09 20:40:39
  • Frameworks
  • this is an excerpt
  • Publique
  • Creative Commons License CC-BY-SA 3.0 / GNU FDL
    Gérer les sauvegardes


Pas de commentaires pour l'instant. Soyez le premier à donner votre avis.

Laisser un commentaire

Créer des tableaux comparatifs ou listes sur tout !

C'est gratuit et rapide de créer des tableaux originaux

Créer un tableau