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

pypi and Github out of sync: to_json and to_dict methods missing #232

Open
rdib-equinor opened this issue Dec 12, 2023 · 0 comments
Open

Comments

@rdib-equinor
Copy link

Describe the bug
to_json and to_dict methods don't exist if using package installed from pypi, only directly from github.

To Reproduce
Steps to reproduce the behavior:

  1. Install via pypi
  2. Run following commands: from quantulum3.parser import parse; quant = parse('I want 2 liters of wine'); quant[0].to_dict()

Expected behaviour
{'value': 2.0, 'unit': 'litre', 'entity': 'volume', 'surface': '2 liters', 'span': (7, 15), 'uncertainty': None, 'lang': 'en_US'}

Additional information:

  • Python Version: 3.10.12
  • OS: Mac
  • Version: 0.9.0

Additional context
If installing directly from github (9dafd76), it works as expected. I'm guessing the pypi deployment didn't pick up the latest changes.

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