nielstron / quantulum3

Library for unit extraction - fork of quantulum for python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot parse kV

mechanicpanic opened this issue · comments

Describe the bug
I don't know what I'm doing wrong, but quantulum3 always gives "kibibyte volt", "kilogram volt" or even "kelvin volt" for kV for me.
Expected behavior
I expect to see "kilovolt", of course.

Screenshots
image

Additional information:

  • Python Version: 3.8
  • Classifier activated/ sklearn installed: yes
  • OS: Win 10
  • Version

Additional context
I run the pip version and the github version in a Jupyter Notebook...?

I guess this is due to units.json not containing the information that Volt can have the SI prefix "k". Will check it when I can have a look at the code :)

It should work with the dev branch, as of this commit: 7f30c3d

This should be fixed as of version 0.7.8