Improved unit parsing
This PR introduces an improvement to unit parsing via astropy.units
. The main addition is a new method detector.units.parse_unit
which attempts to create a ~astropy.units.Unit
as follows
- as is,
- if it looks like a plural, use the singular
- otherwise attempt to create an
UnrecognizedUnit
This fixes #176 (closed).