hklemm / Prospero

0 stars 0 forks source link

[General] Add a standard order function for displaying large values #28

Open jonathanlintott opened 7 years ago

jonathanlintott commented 7 years ago

Currently any allowed units and their conversions are defined wholly in the 'unit' module. This means units can be added and removed fairly easily. Unfortunately it is currently hard-coded in that any GRV values are displayed in millions. This works well for metres cubed or feet cubed, but very poorly for acre-feet.

It would make more sense to create a function that decides which set-of-three order the value should be displayed in (kilo, mega, giga, etc..) which is then invoke in all view modules in the same fashion that the unit converter functions are. Something like this already exists in pyRock.