Adding a __format__method. With a few tests

#4 Merged
Repository
ebsd2
Branch
default
Repository
birkenfeld
Branch
default
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)