Philipp der Rautenberg
Philipp der Rautenberg

Reputation: 2262

Is there a standard pythonic way to treat physical units / quantities in python?

Is there a standard pythonic way to treat physical units / quantities in python? I saw different module-specific solutions from different fields like physics or neuroscience. But I would rather like to use a standard method than "island"-solutions as others should be able to easily read my code.

Upvotes: 21

Views: 2738

Answers (4)

Autoplectic
Autoplectic

Reputation: 7666

quantities seems to be gaining a lot of traction lately.

Upvotes: 10

Stefano Borini
Stefano Borini

Reputation: 143755

The best solution is the Unum package. a de-facto standard, imho.

Upvotes: 9

Andre
Andre

Reputation: 447

There is also pint which in his documentation has a list of other projects in their faq's.

Upvotes: 4

user147438
user147438

Reputation:

I've been looking at the Enthought Units module

Upvotes: 3

Related Questions