nielstron / quantulum3

Library for unit extraction - fork of quantulum for python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add all prefixes of some subset of the prefixes to certain units

nielstron opened this issue · comments

Is your feature request related to a problem? Please describe.
For SI-units, all SI-prefixes should be considered applicable. Right now they have to be specified manually in unit.json via prefixes: ["Y","m","M",...] which is redundant and error prone if just all SI prefixes should be applied.

Describe the solution you'd like
Optional syntactic sugar "all_SI" "all_binary" that add all prefixes from certain subsets to a given unit.

Additional context
#162 (comment)