Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CCUT] Arpeggio package "NoMatch" exception thrown when given purely numerical input #16

Open
huerdong opened this issue Sep 11, 2020 · 0 comments

Comments

@huerdong
Copy link

huerdong commented Sep 11, 2020

When ccut is given a purely numerical input for unit detection, the arpeggio package throws a "NoMatch" exception. The expected result should a unitless ("UNKNOWN DIMENSION") schema.

Example:

from ccut import ccut
cc = ccut()
cc.get_top_ccu("10")

throws this exception
arpeggio.NoMatch: Expected 'deg C' or '[a-zA-Z]+' or '$' or '€' or '₡' or '£' or '₪' or '₹' or '¥' or '₩' or '₦' or '₲' or '฿' or '₴' or '₫' at position (1, 3) => '10*'.

It appears to be assuming that we should always be providing a character in addition to the numerical value to the input.

Addendum:
Further testing shows that non-purely numerical inputs also throw this error, e.g. "OBJECTID_1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant