19. Using pints for units in python
Vložit
- čas přidán 22. 07. 2024
- 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 - Hry
Saved me probably weeks of grinding. I don't need to reinvent the wheel. Thanks man.
Incredibly helpful intro to pint. Thanks Taylor!
Pint is pretty slick, right?
Very useful thanks!!!
This helped me get started with Pint👍🏽👍🏽 very helpful
Happy to help!
very very helpful thank you very much
Bro glad to help!
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?
on the Jupiter notebook I did: ! pip install unit_converter
Thanks for putting this together! Would pint be a good solution for specifying physical types like meters in pydantic classes?
I've never tried it, but I imagine it would work. If you give it a shot let me know and I will make a video about it
The first conversion itself is wrong