19. Using pints for units in python

preview_player
Показать описание
It's critical to keep track of units in scientific computing. Fortunately, python has a few options for tracking and converting units. Here we show you a unit conversion library and the power pint library. We also introduce scipy constants and the molmass library to calculate elemental molar mass. This video has lots of examples of unit conversion for materials science.

00:00 why care about units?
1:30 unit_converter
3:30 pints library
7:20 combining units
9:15 scipy constants
12:15 molmass library
17:20 custom units
18:55 electrical conductivity
Рекомендации по теме
Комментарии
Автор

Saved me probably weeks of grinding. I don't need to reinvent the wheel. Thanks man.

alvincruz
Автор

Incredibly helpful intro to pint. Thanks Taylor!

johnseeley
Автор

Execellent content, congratulations!!

PythonForEnginneering
Автор

This helped me get started with Pint👍🏽👍🏽 very helpful

sonaliyadav
Автор

Thanks for putting this together! Would pint be a good solution for specifying physical types like meters in pydantic classes?

thuggfrogg
Автор

I am unable to find the unit_coverter module. I tried pip and conda. No luck. Can you guide on the installation of this package?

EdVlogsIITMadras
Автор

cool story, the creator of pint is my physics professor!

gordoteton