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

Areas are misattributed to fuel consumption entity #233

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

Areas are misattributed to fuel consumption entity #233

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

Comments

@rdib-equinor
Copy link

Describe the bug
Areas are misattributed to fuel consumption entity

To Reproduce

from quantulum3 import parser
print(parser.parse('I want 2 mm2 of gold leaf and 3 acres of land'))
print(parser.parse('I want 2 mm2 of gold leaf'))
print(parser.parse('I want 3 acres of land'))

Expected behaviour

[Quantity(2, "Unit(name="square millimetre", entity=Entity("area"), uri=None)"), Quantity(3, "Unit(name="acre", entity=Entity("area"), uri=Acre)")]
[Quantity(2, "Unit(name="square millimetre", entity=Entity("area"), uri=None)")]
[Quantity(3, "Unit(name="acre", entity=Entity("area"), uri=Acre)")]

Observed behaviour

[Quantity(2, "Unit(name="square millimetre", entity=Entity("area"), uri=None)"), Quantity(3, "Unit(name="acre", entity=Entity("area"), uri=Acre)")]
[Quantity(2, "Unit(name="square millimetre", entity=Entity("fuel consumption"), uri=None)")]
[Quantity(3, "Unit(name="acre", entity=Entity("area"), uri=Acre)")]

Additional information:

  • Python Version: 3.10.12
  • OS: Mac
  • Version: 0.9.0
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