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

Dimension object unwieldy #13

Open
twerkmeister opened this issue May 5, 2017 · 2 comments
Open

Dimension object unwieldy #13

twerkmeister opened this issue May 5, 2017 · 2 comments
Assignees

Comments

@twerkmeister
Copy link

twerkmeister commented May 5, 2017

Hey @FraBle great work here 👍 😄! just tried to use the duckling.dim.Dim object to have all the allowed values for dimensions, but I need to do it like this

from duckling.dim import Dim
from inspect import getmembers
allowed_values = [m[1] for m in getmembers(Dim) if not m[0].startswith("__") and not m[0].endswith("__")]

is there a more convenient way to get these values? If not, I'd also be happy to make a PR to turn it into a dict or sth that is easier accessible for people

@FraBle
Copy link
Owner

FraBle commented May 9, 2017

Yes, please feel free to submit a pull request 😃

@FraBle
Copy link
Owner

FraBle commented Jun 26, 2017

@twerkmeister, any updates?

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

No branches or pull requests

2 participants