Skip to content

Operator x is parsed as a unit #195

@s2u7

Description

@s2u7

Describe the bug
Noticed that x operator in area dimension is parsed as a unit. Is there a way to exclude certain characters from being parsed as units.

To Reproduce
Steps to reproduce the behavior:

import quantulum3
from quantumlum3 import parser
quants = parser.parse('18 1/4 x 4 1/4  Floor Edge')
quants[0].surface

Expected behavior
'18 1/4'
** Actual behavior**
'18 1/4 x'

Screenshots
If applicable, add screenshots to help explain your problem.

Additional information:

  • Python Version: [3.8]
  • Classifier activated/ sklearn installed: [yes?]
  • OS: [Linus]
  • Version [20.0.4]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions