vimeo/graph-explorer — pull request #73 by thepaul (2013-11-26 19:08:30+00:00)
Title: don't force scaling prefixes in units

this was accomplished by making the unitconv code a little more general,
so that it distinguishes between a "base unit" (the unit without any
scaling prefixes) and a "primary unit" (the unit with any time or
storage size components downsized to their most basic equivalents, e.g.
seconds or bits). the "base unit" is what the graph will get.

also, move most of the unitconv doctests into real unittest classes;
they were starting to try and be too complete and too long to be nice
doctests.

fixes #69.