quantulum3 icon indicating copy to clipboard operation
quantulum3 copied to clipboard

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

Open rdib-equinor opened this issue 1 year ago • 0 comments

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.

rdib-equinor avatar Dec 12 '23 11:12 rdib-equinor