1. Georg Brandl
  2. ipython-physics
  3. Pull requests

Pull requests

#4 Merged
Repository
ebsd2
Branch
default
Repository
birkenfeld
Branch
default

Adding a __format__method. With a few tests

Author
  1. Anders Lehmann
Reviewers
Description

I have found that I sometime need/want to format the printing of PhysicalQuantity. I find it more intuitive to use the normal format specifiers directly on the PhysicalQuantity instead of formating the value and adding the unit.

There are a few tests (py.test style) - which of course can be improved upon.

Comments (1)