-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
sympyRelated to sympyRelated to sympy
Description
The % symbol seems to be not parsed corerctly by sympy
from physipy import K
import sympy as sp
pc = 1/K
pc.symbol = "%/K"
q = 2*pc
q.favunit = pc
print(pc.symbol) # '%/K'
qValueError: Error from parse_expr with transformed code: "%/Symbol ('K' )"
The above exception was the direct cause of the following exception:
File "", line 1
%/Symbol ('K' )
^
SyntaxError: invalid syntax
<Quantity : 2.0 1/K, symbol=%/K*UndefinedSymbol>
Metadata
Metadata
Assignees
Labels
sympyRelated to sympyRelated to sympy