connorferster / forallpeople

Python SI units library: your 'daily driver' for calculations.
Apache License 2.0
285 stars 39 forks source link

Structural environment - rendering unit psi as Greek letter psi #109

Open thisisapple opened 2 weeks ago

thisisapple commented 2 weeks ago

I use si.environment('structural', top_level=True).

I intend to use the unit psi. However, the library will render 'psi' as the Greek letter psi. See the screenshot. The result is looking funny.

%%render
h = 14*psi
l = 3*ft
P = h * l**2
P = P.to('lb')

image

thisisapple commented 2 weeks ago

There is a workaround. Use parenthesis Here is a way:

%%render
h = (14*psi)
l = 3*ft
P = h * l**2
P = P.to('lb')